Re: CGI-PHP (dumb newbie strikes again)

From: Date: Fri, 05 Jan 2001 22:31:36 +0000
Subject: Re: CGI-PHP (dumb newbie strikes again)
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-32961@lists.php.net to get a copy of this message
"Tom Harris" <stry_cat@yahoo.com> writes: > This is another dumb question. > I complied php as a cgi so I could run scripts from the shell. > > Just for a test I tired the following script name myphptest.php > > #!/usr/bin/php > phpinfo(); > > Unfortunately when I type ./myphptest.php at the prompt I'm told > > ./myphptest.php: Command not found. > > I've tired several really simple scripts and they all come back the same. The error you are getting normally implies that the shell specified by the #! is not available. Does /usr/bin/php exist, and are the permissions on it executable ? -- A Complete Luser <acompleteluser@penguinpowered.org.uk>

« previous php.general (#32961) next »