hosted by liquidweb

Go Back   Web Hosting Talk : Web Hosting Main Forums : Programming Discussion : PHP Controlling Windows 2k

Forum Jump

PHP Controlling Windows 2k

Reply Post New Thread In Programming Discussion Subscription
Send news tip View All Posts Thread Tools Search this Thread Display Modes
Join Date: Aug 2002
Posts: 4

PHP Controlling Windows 2k

How would I create a php script that would be able to run certian commands on my windows 2000 server, all from a web interface control panel??? I know this is a tuf questions, but I just thought I would give it a try.

Sponsored Links
Quick, poke it with a stick!
Join Date: Jul 2001
Location: Troy, Missouri USA
Posts: 1,299
First you should download and install phpdev5 from you will then have the ability to learn and test php on you PC. I have been using version 4 for about 4 months and ver. 5 for about 1 month. I found it is very stable and compatible.

Beta 5 worked as soon as it was installed no problem, it includes:
apache 1.3.26
apache 2.0.39
phpmyadmin 2.3 (RC)
AnalogX php.ini configurator
PHP-GTK 0.51

32 Mbps broadband

Join Date: Aug 2002
Posts: 4
K i just installed it

Sponsored Links
Join Date: Aug 2002
Posts: 11
.. and then just use any of the system calls

Join Date: Aug 2002
Posts: 4
OK, can you give me an example of a script that would execute "test.exe -text test +exec test.cfg" & be able to shut it down with a seperate command.

Junior Guru
Join Date: Dec 2001
Location: Blackpool, England
Posts: 180
system("the command you wanted to run");

as for the closing it, cant think of a easy way of doing this under windows, been using linux to much. ud need to grab the process id and kill it

sorry cant be much more of a help

Junior Guru
Join Date: Jul 2001
Location: Wrapped in CAT5.
Posts: 217
Lightbulb Need proper permissions...

To be able to control aspects of Windows, you would need to make sure that the IIS user (normally 'the IIS anonymous user') has sufficient permission to execute various programs. This gets more complicated on a domain (if you wanted to automate DB creation on another box, for example) because this user must be a domain user.

Just something to keep in mind.


Dan Esparza
CagedTornado web services

Web Hosting Master
Join Date: Jan 2002
Location: Kuwait
Posts: 679

Ahmad Alhashemi
PHP, Apache, C, Python, Perl, SQL
18 related BrainBench certificates

Junior Guru
Join Date: Aug 2002
Location: Plymouth
Posts: 212
Try System() function call.

system() is just like the C version of the function in that it executes the given command and outputs the result. If a variable is provided as the second argument, then the return status code of the executed command will be written to this variable.


Related posts from
Title Type Date Posted
VMware Launches DaaS Based on vCloud Hybrid Service Web Hosting News 2014-03-10 12:34:24
Microsoft Surpasses Amazon as Largest Windows Hosting Company: Netcraft Web Hosting News 2014-02-27 17:05:44
Microsoft Releases Major Updates of Windows Server, System Center, Intune Web Hosting News 2013-10-18 16:08:17
Rackspace Launches Free Cloud Assessment Tool for Windows Server 2012 Migration Web Hosting News 2013-07-31 13:27:03
BackupAgent Adds Integration Feature with Windows Azure Web Hosting News 2013-03-14 16:48:49

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes
Postbit Selector

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Forum Jump
Log in with your username and password

Forgot Password?
WHT Host Brief Email:

We respect your privacy. We will never sell, rent, or give away your address to any outside party, ever.

Web Hosting News:
WHT Membership
WHT Membership



Welcome to

Create your username to jump into the discussion! is the largest, most influentual web hosting community on the Internet. Join us by filling in the form below.

(4 digit year)

Already a member?