Skip to content

Tag: php

PHP calling python script and button disappear after clicked in php

i have a python script, that can be called from PHP start.php how do I make the button disappear if the service is running already? or make a popup windows saying its already running when user tried to click again? i have another php where it can check the service running or not status.php Answer managed to d…

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 ($…