note 102516 added to function.system
[email protected] Fri, 18 Feb 2011 07:13:12 -0800
| Newsgroups | php.notes |
|---|---|
| Message-ID | <[email protected]> |
From WIDOWS to start multilpe php scripts from a parent script and do not wait for child scripts to finish, from the parent.php creat a X.bat file that contains all the commands to start child objects, something like:
start /B C:/[path_to_php]/php -f C:/child1.php > C:/[path_to_log1].txt
start /B C:/[path_to_php]/php -f C:/child2.php > C:/[path_to_log2].txt
and then run the X.bat width
<?php
system("CMD /C X.bat");
?>
----
Server IP: 69.147.83.197
Probable Submitter: 89.121.221.162
----
Manual Page -- http://www.php.net/manual/en/function.system.php
Edit -- https://master.php.net/note/edit/102516
Del: integrated -- https://master.php.net/note/delete/102516/integrated
Del: useless -- https://master.php.net/note/delete/102516/useless
Del: bad code -- https://master.php.net/note/delete/102516/bad+code
Del: spam -- https://master.php.net/note/delete/102516/spam
Del: non-english -- https://master.php.net/note/delete/102516/non-english
Del: in docs -- https://master.php.net/note/delete/102516/in+docs
Del: other reasons-- https://master.php.net/note/delete/102516
Reject -- https://master.php.net/note/reject/102516
Search -- https://master.php.net/manage/user-notes.php