Q:

How can I run a php script from the CLI without prepending "php" to it?

I'm trying to create a script that runs from the webserver that will run a php file via exec(), but I want it to do so without prepending the php to it. Can this be done?
Using Windows 2008 and XAMPP

A:

No, a php file cannot be directly executable in Windows.  You would need a workaround like wrapping the php filename.php command in a batch file.

