Exec
| From: | charlesk | Date: | Wed, 10 Jul 2002 21:03:48 +0000 |
| Subject: | Exec | ||
| Groups: | php.windows | ||
| Request: | Send a blank email to php-windows+get-14687@lists.php.net to get a copy of this message | ||
I am trying to get php to create a DNS entry on a different server.
When I open a command shell and enter the command it works fine. (
(dnscmd.exe servername /EnumRecords domainname @) OR
(dnscmd.exe IPaddress /EnumRecords domainname @)
When I have php exec() the same command from a command line it works fine.
(c:\php\php.exe c:\test.php4)
When I have php exec() the same command from a web page it fails.
(www.intranet.com/dnsinfo.php)
When servername is the local server it works fine from everywhere.
Also when I access the website I am using IIS 5.0 and NT authentication so the task manager shows
that the php.exe is running as me. (Permision shouldnt be an issue)
My question is, does the exec function have network access or why isnt this working from a webpage?
Charles Killmer
PHP 4.2.1 IIS 5.0 Windows 2000 Server