This has been bugging me slightly.
I know you can do
php foo.php
or
php -f foo.php
Is there no way to just launch a script with the execute bit set
./foo.php
Given the folowing:
#!/usr/bin/php
<?php
exit('hello');
I get "Could not open input file" or " bad interpreter: No such file or directory" depending on if there's whitespace after "bin/php".