Category: command-line

#!/usr/bin/env php does not execute script without the file extension [closed]

I’m writing a command-line application using the console component of Symfony. When I execute it using the .php file extension from the application directory where the file is contained (./myapp.php), it works as expected, however, if I leave it off…