Search found 7 matches
- Mon Apr 11, 2005 12:44 pm
- Forum: PHP - Code
- Topic: com-object & getting pid
- Replies: 1
- Views: 565
com-object & getting pid
Hello I am using the following code for starting a script (my_script.py) and having it running in the background (without halting the initiating php-script) my php-script: $cmd = "python my_script.py"; $WshShell = new COM("WScript.Shell"); $oExec = $WshShell->Run($cmd, 1, false);...
- Mon Apr 04, 2005 2:46 pm
- Forum: PHP - Code
- Topic: php script consuming CPU-usage
- Replies: 6
- Views: 304
i think it is some path problem
the environment-variable is set, I just use php (not the whole path). I do think that the path I am using will not be correct from the apachservers point of view, since everything is working when i'm running it locally from my terminal. But I don't know what other path I should use... The apache roo...
- Mon Apr 04, 2005 10:27 am
- Forum: PHP - Code
- Topic: php script consuming CPU-usage
- Replies: 6
- Views: 304
the 'php -f myPHP_script.php' didnt help
hello again the '-f' didnt help, but i forgot to tell that what i am making is a web page residing in an apache server. From this page i want to start another php-script. Maybe the problem is the path. My apache-server'root is in 'web' initiator code: <? $sep = DIRECTORY_SEPARATOR; $WshShell = new C...
- Mon Apr 04, 2005 9:05 am
- Forum: PHP - Code
- Topic: php script consuming CPU-usage
- Replies: 6
- Views: 304
myPHP_script.php
myPHP_script.php my php-script doesnt do anything else than echo'ing 'Hello'. The script is supposed be continously checking some weather data, but when a simple hello halts the initial script i havent started on this. Have also tried to run a python script from the initial php-script but the result...
- Sun Apr 03, 2005 8:13 am
- Forum: PHP - Code
- Topic: php script consuming CPU-usage
- Replies: 6
- Views: 304
php script consuming CPU-usage
Hello (using Windows XP) I am running a php-script and during execution it is starting another php-script (myPHP_script.php). This second php-script is running in the background and everything is working fine when i start the initial php-script from the command line. The problem starts when i try to...
- Fri Apr 01, 2005 3:44 am
- Forum: PHP - Code
- Topic: executing php through command line
- Replies: 1
- Views: 262
executing php through command line
Hello
I need to execute a php-script from the commandline. I am running a python-program and i need the php-script to do something for me. How can i start this php-script. I am using Windows
regards
I need to execute a php-script from the commandline. I am running a python-program and i need the php-script to do something for me. How can i start this php-script. I am using Windows
regards
- Fri Apr 01, 2005 3:33 am
- Forum: PHP - Code
- Topic: background program executing without halting the php-script
- Replies: 1
- Views: 355
background program executing without halting the php-script
Hello I am writing a php-program that needs to be able to start off another program (test.py) and having this running in the background without halting the initial php-program. I also need to control the python program running in the background and be able to kill it at any time (need the process ID...