Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers. This question does not appear to be about a specific programming problem, a software algorithm, or software tools primarily used by programmers. If you believe the question would be on-topic on another Stack …
Tag: php
PHP Swoole Notice ERRNO 1005
When Swoole is on heavy load and heavy requests I kept getting this Log: [2021-01-24 16:07:22 *33833.2] NOTICE finish (ERRNO 1005): session#21022 does not exists [2021-01-24 16:07:22 *33833.2] NOTICE finish (ERRNO 1005): session#21022 does not exists [2021-01-24 16:07:22 *33833.2] NOTICE finish (ERRNO 1005): …
Organize array based on hierarchy of parent field
I have a table for ‘Categories’ on the application I am building with PHP. Each category can have a children category and so on. For example: I need to organize an array hierarchically like the example above. Considering that on my Table I only save 3 fields: So I save only the first direct parent…
PhpSpreadsheet Reader Exception Failed to load /root_dir/public/laravel-excel-fLRGTlw9uEE2XRz0k1fXdcg2wfs2RWy7.html as a DOM Document
I have tried everything for resolving this issue but nothing worked. php artisan cache:clear php artisan view:clear php artisan route:clear php artisan config:clear Also Updated my Dependencies …
Require Once Failing Relative Path
I have the following file structure in my project: + server + api + product – get.php + database – product.php + model – product.php + service – product.php + utilities …
PHP: Can’t Set Open_basedir
I try to execute: var_dump(ini_set(“open_basedir”,ini_get(“open_basedir”))); with PHP and get false. Apache 2. PHP Version: 5.3.28, it should change it from script, how i read at …
Automatically function for a form on webpage without click on button
Here is my code for going to the Paypal payment gateway for the item after a click on the “Buy Now” Button, But I want this function to be without even click on the “Buy Now” button, my meaning is when then webpage opened automatically go to the Paypal payment gateway without a click o…
Catch array of HTML multiple select with PHP
I have two multiple selects declared as: I want to catch the values in PHP, like this But the values come like this (with print_r on the $_POST): instead of: How can this be achieved? Can anyone help? Thanks in advance. Answer Try changing the names of the fields on the form to the indices at which you want t…
php counting issue using array_walk
I had something very different and was having issues with an array_map code I had written. I asked for help and someone was nice enough to suggest he code below. However it seems to have a couple of errors and since I didn’t write it and am not as familiar with array_walk I could use some help getting i…
PECL PCSC install on PHP 7.4
I am using PHP code that relies on the package: https://pecl.php.net/package/pcsc Finally I need to update from PHP 5 to PHP 7 (late enough). The REMI repo for CentOS unfortunately does not support PCSC for PHP7 anymore so I tried to install it manually by using the command: But I get a bunch of errors (see b…