View Single Post
Old Aug 13th, 2006, 9:26 PM   #1
PhilBon
Hobbyist Programmer
 
PhilBon's Avatar
 
Join Date: Nov 2005
Posts: 172
Rep Power: 3 PhilBon is on a distinguished road
Send a message via AIM to PhilBon Send a message via MSN to PhilBon
Execute Commands with Command Prompt

I've been working on a way to add a whole bunch of users to windows server 03. I've made one PHP file that will create me a batch file to add the users but that requires me to also run the batch file. I remembered seeing something on php.net about executing commands. I've tried system() and exec() and I've been getting these errors: "Warning: system() [function.system]: unable to fork [echo hello] in c:\inetpub\wwwroot\test.php on line 7" and "Warning: exec() [function.exec]: Unable to fork [dir] in c:\Inetpub\wwwroot\test.php on line 4". I was wondering if anyone had any info on this.
PhilBon is offline   Reply With Quote