Please excuse my lack of vbCode as I am a new user and can't use that until I have 5 posts. I'm trying to use a PHP script to start a program like I would via command line on my Windows 2003 server which is running PHP and Apache with Xampplite. I am trying the code in two different ways that I have found other people using but the program (webshotcmd.exe) does not run.
The second code does not give me the file didn't exist so I should be referencing the .exe correctly. I have heard there are sometimes permission problems with the exec() function so I have tried setting them but I don't know if I did that correctly. Any help and advice you can offer is greatly appreciated.
Last edited by dollar; 03-14-2008 at 10:22 PM.
Reason: Added BB Code
For your first snippet of code, you need to edit it so that you give the full path to the file 'webshotcmd.exe'. As it is written currently, it is looking for the file from /, which is the root of your web directory. I doubt the file is there.
Second, since you are running this from Windows, make sure the SYSTEM user has permissions to execute the file. You can check this by going to the file itself, right click, and properties. Then I believe its Security or Permissions...forgot really.
In order to understand recursion, one must first understand recursion.
If you feel like it, you can read my blog
Signal > Noise