Normally when I want to run a php script from the command line I just create a php page, add a shebang pointing to the php binary, then ./file.php to run it. Since I have php installed as an apache module, I’m not even sure what my shebang should look like. Any ideas?
Share
If it’s just an Apache module, I don’t think you can do it… At least, not without using a script like this: