PHP and EXEC()

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
User avatar
Calimero
Forum Contributor
Posts: 310
Joined: Thu Jan 22, 2004 6:54 pm
Location: Milky Way

PHP and EXEC()

Post by Calimero »

I looked at The Manual, but still not sure (at all) how to code this - if it is possible at all:


Can php disable/enable LAN connection (or dialup, VPN... but mainly LAN) on windows OS

What kind of commands can call with exec on win OS, and if some file is is certain folder how do I call it (do I need to enter the path to the file or do I need to copy the file to htdocs ... )

Please help really didn't understand the author in The Manual.


Thanks Ahead !
User avatar
AVATAr
Forum Regular
Posts: 524
Joined: Tue Jul 16, 2002 4:19 pm
Location: Uruguay -- Montevideo
Contact:

Post by AVATAr »

well... do you know the command you need to do that from cmd in windows?
User avatar
m3mn0n
PHP Evangelist
Posts: 3548
Joined: Tue Aug 13, 2002 3:35 pm
Location: Calgary, Canada

Post by m3mn0n »

Take a look at this section of the manual: [php_man]w32api[/php_man]

They decided to remove the usernote I left about a year ago, luckily for you Google has a great cache system:
http://msdn.microsoft.com/library/ contains functions for use with this extension.

Beware! The menu system is very dense, and confusing at first if you don't know where your going.

Luckily for you I am going to add how to get there in this note. ;)

Windows Development > Development Guides > Windows API > Windows API Reference

Enjoy.
Post Reply