Skip to content

PHP isn’t executing ps command (possible permission issue?)

I have a small script I tested on the command line using php test.php. test.php This works fine. I am able to run the script and get the desired result. However, when I add the code to a file being run by my PHP server, the result is empty. My OS is FreeBSD. Looking at the man page for ps

how display the number of occurrences of each letter in this string

I have an exercise I don’t know how to solve, because I am a beginner in php, here is the exercise summary: the “str_split” function allows you to convert a character string into an array (if we have a $s string that we want to store in a $tab array, we will write “$ tab = str_split ($…

How to Create PHP Envirnoment in Docker?

I am trying to dockerize php web-app with apache2 server. any better way to create environment for php and apache2. I have search on internet cloud not able to find any solution. I have used ubuntu:…