Skip to content

Tag: php

Linux can’t find process started by PHP [closed]

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 …

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…

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 …

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…