php doubt

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
tempuser
Forum Newbie
Posts: 1
Joined: Mon Jul 18, 2011 1:45 pm

php doubt

Post by tempuser »

Can anyone help me out on this ??

How can i open windows command prompt from a web-page that runs with php script??
oscardog
Forum Contributor
Posts: 245
Joined: Thu Oct 23, 2008 4:43 pm

Re: php doubt

Post by oscardog »

You can't. No web-based will do that.
User avatar
McInfo
DevNet Resident
Posts: 1532
Joined: Wed Apr 01, 2009 1:31 pm

Re: php doubt

Post by McInfo »

You can run commands on the server with program execution functions, but the browser does not allow that kind of access to the client machine. Even if it did, anything happening on the client is beyond the scope of PHP running on the server.
beetree
Forum Commoner
Posts: 26
Joined: Mon Jul 18, 2011 6:30 pm
Location: Peninsula

Re: php doubt

Post by beetree »

tempuser wrote:Can anyone help me out on this ??

How can i open windows command prompt from a web-page that runs with php script??
If you want to open a command prompt on the client side, it is impossible without any .NET or other implementations.

However, if you want to open up a command prompt on the _server side_ you could do that with system(), php.net/system.

/beetree
Post Reply