RE: [PHP] apache/cgi/shell question
| From: | Maxim Maletsky | Date: | Fri, 15 Dec 2000 06:37:25 +0000 |
| Subject: | RE: [PHP] apache/cgi/shell question | ||
| Groups: | php.general | ||
| Request: | Send a blank email to php-general+get-30457@lists.php.net to get a copy of this message | ||
What about have a file with "#!/bin/php -q" which would include the file you
need at the bottom? Does that make any sence?
-----Original Message-----
From: Kyle Jerviss [mailto:kjj@jerviss.org]
Sent: Friday, December 15, 2000 3:21 PM
To: php-general@lists.php.net
Subject: [PHP] apache/cgi/shell question
Say I've got a php script that I want to be able to run from the command
line, or from a browser.
If I put "#!/bin/php -q" as the first line, I can run it from the
command line, but it messes with the browser version. Is there a clever
way to get the same script to work right both ways?
I'm suspecting there isn't, and it probably isn't a good idea to begin
with, but I'd like to try anyway.
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: php-general-unsubscribe@lists.php.net
For additional commands, e-mail: php-general-help@lists.php.net
To contact the list administrators, e-mail: php-list-admin@lists.php.net