...

View Full Version : which command line?



jjshell
12-14-2008, 02:10 PM
Hi,
This post is related to the following part of the manual:
http://php.net/manual/en/function.exec.php#86329

I'd like to run a php script from within a script. Which command line should I pass top the function given in the above user comment?

More info:
The script which should be executed is named sleep.php. It just does a sleep(30). The script calling sleep.php should experience no delay in its own execution (an include approach of sleep.php would force the user to wait during the sleeping period, which I don't want).

Regards,

-jj. :)

oesxyl
12-14-2008, 03:26 PM
Hi,
This post is related to the following part of the manual:
http://php.net/manual/en/function.exec.php#86329

I'd like to run a php script from within a script. Which command line should I pass top the function given in the above user comment?

More info:
The script which should be executed is named sleep.php. It just does a sleep(30). The script calling sleep.php should experience no delay in its own execution (an include approach of sleep.php would force the user to wait during the sleeping period, which I don't want).

Regards,

-jj. :)
not sure what you want to achive but I guess you are looking for


php -f sleep.php

you must have cli installed and probably absolute path for both php executable/binary and your php file.

info about this:

http://www.php.net/manual/en/features.commandline.php
regards



EZ Archive Ads Plugin for vBulletin Copyright 2006 Computer Help Forum