apache/cgi/shell question

From: Date: Fri, 15 Dec 2000 06:21:18 +0000
Subject: apache/cgi/shell question
Groups: php.general 
Request: Send a blank email to php-general+get-30454@lists.php.net to get a copy of this message
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.

« previous php.general (#30454) next »