bst365体育投注网址大全

Questions tagged [php]

PHP is a widely used, high-level, dynamic, object-oriented and interpreted scripting language primarily designed for server-side web development. Used for questions about the PHP language.

Filter by
Sorted by
Tagged with
-1
votes
0answers
4 views

I'm having this CORS error when I try to sign up

I'm having CORS error but I used all CORS configurations. Here is my error: Access to XMLHttpRequest at 'http://localhost:3000/api/users/signup' from origin 'http://localhost:4200' has been blocked by ...
0
votes
1answer
10 views

how to write this loop using foreach instead of while and each

I do have the following code, I need to use foreach instead of while and each! how can I do it? this originally came from js composer plugin while ( $activity = each( $this->init_activity ) ) { ...
0
votes
0answers
3 views

How add new fields in registration form Opencart 3

Hello I want to add more required fields in my user registration form like( phone number, mobile number , Country, Town, address)
0
votes
0answers
9 views

Bootstrap Nav Walker - Hover Drop down stopped working suddenly

My nav was working just fine, when I tried it this morning, the parent nav that has children won't drop down on hover like it did before and also the parent nav links stopped working? Weird. I checked ...
0
votes
0answers
10 views

how does sort() in php sort array using ‘SORT_REGULAR’? how does this work?

how does sort() in php sort array using ‘SORT_REGULAR’? how does this work? -> when array elements are mixed (numeric string, number, and string)?
-2
votes
0answers
16 views

share array between php pages [duplicate]

I'm noob with php and I just want to understand the correct way to do this job.. I have a multidimensional static arrey of values in a page called preventivo.php. This arrey is storing some usefull ...
0
votes
1answer
7 views

How to get the date column from MySQL database with prepared statement and format it

The query is working but I' having some trouble with prepared statements for the date column only. Everything else is working. It works when it's like this: $get_the_query = " SELECT * FROM ...
-1
votes
0answers
9 views

Want to change permalink structure

I want to change author permalink structure. Currently it is domain.com/blog/author/author-name I want to change it to this: domain.com/author/author-name
0
votes
0answers
7 views

Puppeteer not generating PDF from a Symfony process

I'm trying to use Puppeteer v5.0.0 to generate PDFs of my application's page. To run the command to start the process I'm using Symfony's Process class. The command works normally when I type it ...
-2
votes
0answers
19 views

PHP mysql prblem with insert sql syntax error [duplicate]

I have a problem with this code $sql ="INSERT INTO order(created, customer, total, shipping) VALUES ("; $data = date("Y-m-d"); $sql .= "'$data', "; ...
0
votes
1answer
18 views

$_GET function doesn't see '+' or '%20' signs in the url

In a php file I am using this code: header('Location: localhost/?room=ler&user='.urlencode('Indianu Talpa Iute')); That sends me to a page where the url is: localhost/?room=ler&user=Indianu+...
0
votes
0answers
11 views

Get array with all font-variants from a string with @font-faces with preg_match_all [duplicate]

I have a string with @font-face rules. I need an array with all font-weights. Each string only contains one font-family, so it is only about the font-weights. As an example, consider the following ...
0
votes
1answer
15 views

Is it possible to install PHP7.4 on stock Alpine 3.12 Docker image?

Is it possible to install PHP7.4 on stock Alpine 3.12 Docker image? I have seen this repo and its dockerfile which is using bintray cert and repository path, but I was wondering if there is a more &...
0
votes
0answers
5 views

laminas/laminas-diactoros RedirectResponse not work

I'm using laminas/laminas-diactoros RedirectResponse not work i want to redirect user without using the header() function Laminas RedirectResponse not work why?? class HomeMiddeleware implements ...
0
votes
1answer
17 views

PHP remove tags matching pattern or wild card pattern

How can I use preg_replace or similar to find and replace all instances where tags matche the following: I have many instances of tags like this in my content: <span style="background-color: ...

15 30 50 per page
1
2 3 4 5
90784