RE: [PHP] php-cli - Controlling external programs
| From: | Jay Blanchard | Date: | Thu, 31 Jul 2003 12:12:26 +0000 |
| Subject: | RE: [PHP] php-cli - Controlling external programs | ||
| Groups: | php.general | ||
| Request: | Send a blank email to php-general+get-157697@lists.php.net to get a copy of this message | ||
[snip]
Bah, not the answer I was looking for...I really wanted to use PHP and I
have most of what I wanted accomplished. Thanks for the tip, I will
investigate.
[/snip]
http://us3.php.net/features.commandline
If you use -a for your command line script the script will run
interactively
example: php -a myscript.php
or if you want to use a bash line at the head of your script
#!/usr/local/bin/php -a (dependent upon the location of php)
HTH