Lack of interest Allow cmd.php to be easily executaed via shell

This suggestion has been closed automatically because it did not receive enough votes over an extended period of time. If you wish to see this, please search for an open suggestion and, if you don't find any, post a new one.

Xon

Well-known member
cmd.php is primarily designed to be run via shell/cli. Under linux/macos, if you stick #!/usr/bin/php as the first line; php will then be executed if the script is marked as executable (chmod +x cmd.php). (Most OS's put php in this location, but not all)

Obviously this doesn't work so well on Windows.
 
Upvote 4
This suggestion has been closed. Votes are no longer accepted.
We do the same in all our Symfony apps, it would be nice if XenForo could adopt the same behavior.

PHP:
#!/usr/bin/env php
<?php
 
Back
Top Bottom