![]() |
|
Welcome to the Computer Webmaster Gaming Console Graphics Forum forums. You are currently viewing our boards as a guest which gives you limited access to view most discussions and access our other features. By joining our free community you will have access to post topics, communicate privately with other members (PM), respond to polls, upload content and access many other special features. Registration is fast, simple and absolutely free so please, join our community today! If you have any problems with the registration process or your account login, please contact contact us. |
| |||||||
| PHP PHP for some can be one of the hardest website programming codes, so do you need help on your PHP script, if it is php4, php5 or lower this is the place for you for any PHP help. |
![]() |
| | LinkBack | Thread Tools | Display Modes |
| | #1 | ||
| To all, I posted this question once before on the general PHP list; however, now that the list has been segmented into different groups, I thought I'd try once again. I am a PHP newbie and am having trouble getting PHP shell commands (exec, passthru and system) to execute. Even something as simple as <? system("dir c:\\"); ?> won't execute on a Webserver running NT Server 4.0 and IIS 4.0. The message that comes back is Warning: Unable to fork [dir c:\] in C:\Inetpub\wwwroot\mjg\test1.php on line 2 This very same script ran on a Linux Webserver. Permissions have been set very liberally so I don't think this is the issue. Other PHP scripts that do not contain shell commands do execute. One suggestion was to try either system("command /c dir c:\\"); or system("cmd /c dir c:\\"); Neither of these were successful and resulted in similar error. Does any one have any ideas? Thx in advance, mjg ( graz@multicastisp.com ; 914-462-9084 ) | |||
|
| | #2 | ||
| Mike Graziano wrote: > To all, > > I posted this question once before on the general PHP list; however, now > that the list has been segmented into different groups, I thought I'd try > once again. > > I am a PHP newbie and am having trouble getting PHP shell commands (exec, > passthru and system) to execute. Even something as simple as > > <? > system("dir c:\\"); > ?> > > won't execute on a Webserver running NT Server 4.0 and IIS 4.0. The message > that comes back is > > Warning: Unable to fork [dir c:\] in C:\Inetpub\wwwroot\mjg\test1.php on > line 2 > > This very same script ran on a Linux Webserver. Permissions have been set > very liberally so I don't think this is the issue. Other PHP scripts that > do not contain shell commands do execute. > > One suggestion was to try either > > system("command /c dir c:\\"); > > or > > system("cmd /c dir c:\\"); > > Neither of these were successful and resulted in similar error. > > Does any one have any ideas? > > Thx in advance, Try the full path and name thing i.e. my sys has "%SystemRoot%\system32\cmd.exe" in the link/shortcut in my menu try that though I think the full thing i.e. system("C:\\winnt\\system32\\cmd.exe dir C:\\") on my sys. -- Francis Smit Knowledge By Design/OzTel Suite 201, 683 George st Sydney 2000 NSW http://www.kbd.com.au mailto:francis@kbd.com.au Tel: +61 2 9212 1399 Fax: +61 2 9212 5727 ___________________________________ m$: How can we stuff you up today? | |||
|
| Featured Websites | ||||
|
![]() |
| Tags: |
| Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
| Thread Tools | |
| Display Modes | |
| |
Similar Threads | ||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Where does PHP embedded in an HTML page execute? | rush | PHP | 0 | 07-01-2007 3:37 PM |
| exec() | Eric VIALLE | PHP | 0 | 07-01-2007 3:31 PM |
| Execute a program | Jose Antonio | PHP | 4 | 07-01-2007 3:15 PM |
| running droplet from cygwin shell-file not found | joled@rcn.com | Graphics in general | 4 | 06-12-2007 12:24 AM |
| SQL "Commands out of sync" error from one command... | Bob | Database | 1 | 06-10-2007 12:19 AM |
| Featured Websites | ||||
|