I have PHP scripts that start off as so:
// php code ...
They're chmod a+x. "which php" returns "/usr/local/bin/php". Used to work just fine using "./script.php". Now, that gives this error "bad interpreter: No such file or directory". Weirder still is that "php script.php" executes the script fine. PHP appears to be the cli version:
[admin]# /usr/local/bin/php -v
PHP 4.3.4 (cli) (built: Dec 9 2003 03:07:33)
Copyright (c) 1997-2003 The PHP Group
Zend Engine v1.3.0, Copyright (c) 1998-2003 Zend Technologies
Anybody know what the problem is?