I added this problem to the bottom of another semi-related thread and got no response so I'm making a new thread.
I have a windows 2000 server running apache 2 and php. I have a script that I call both from command line and through apache. The script contains several exec functions which only work when the script is called via apache. I'm pretty sure it's a permissions problem, because via apache doesn't work either unless the service is runned as ./administrator. I suspect that running the script via command line would work if I could figure out how to give php more permissions.