Re: Command line operations
| From: | Colin McKinnon | Date: | Fri, 07 Jul 2000 13:07:24 +0000 |
| Subject: | Re: Command line operations | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-5372@lists.php.net to get a copy of this message | ||
At 10:18 07/07/00 +0530, Anurag Bhalla wrote:
>Is there a way by which a command line operation can be performed in
windows environment through a php program.
>My program has to run a software through command line (with arguments
provided by the php program) which generates a file and that file is used
by the program.
>
>Regards
>Anurag
>
Did you look in the section of the manual on "Program Execution Functions"
Chapter XIV?
This describes 'escapeshellcmd','exec', 'system' and
'passthru' - although
I don't know how well these work on a MS-Windows OS.
If you want to spawn a background process, that seems to a lot more tricky
as you need to disconnect the process from the current session - someone
posted a wee 'C' program to the list which does this in Unix - see the
archive for more info.
HTH
Colin