I have PHP scripts that start off as so: #!/usr/local/bin/php <? // 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". However, "php script.php" still 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? __________________________________ Do you Yahoo!? Yahoo! Photos: High-quality 4x6 digital prints for 25¢ http://photos.yahoo.com/ph/print_splash -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php