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