We've written a custom VB app that we need to run from a .PHP web page.
The commandline listed below work great from the command line:
c:\sqltoexcel /UID GWILSON /URL c:\test.htm
If I try to pass the exact same string to the commandline from .PHP with backticks, or the exec function, the program runs and creates an error message that indicates the parameters passed to it were invalid. (A generic error)
I'm guessing that there is some certain syntax to passing characters like backslashes and spaces through to the commandline, but I don't know it.
How can I make this work?
BTW, I'm using PHP 4.11 on IIS/W2K Server. I have made sure that the account running via PHP has sufficient permissions to create the file. The exact same account is capable of running the command if run from the command line.