You don't have ./ in your $PATH so you must type ./test.php to execute it
Leif K-Brooks wrote:
I'm trying to do shell scripting in PHP. I have PHP installed in
/usr/bin/php. I have the following script:
#!/usr/bin/php -q
print "Success!\n";
?>
It's saved as test.php and CHMODed to 777. When
In Unix you need to specify the working folder when you are launching an
executable, otherwise Bash will try to look into its search path, which
does not include the current folder. Try:
./test.php
That should work. BTW--running "test" by itself only *looks* like
hitting enter--it's really a vali
Ever answered your own question five seconds after asking it?
Apparently, I have to type "/path/to/test.php" even though I'm already
in the right directory.
Leif K-Brooks wrote:
I'm trying to do shell scripting in PHP. I have PHP installed in
/usr/bin/php. I have the following script:
#!/usr
3 matches
Mail list logo