faqts : Computers : Programming : Languages : PHP

+ Search
Add Entry AlertManage Folder Edit Entry Add page to http://del.icio.us/
Did You Find This Entry Useful?

Entry

Is it possible to issue a command to windows xp command-line through a php script?

Mar 20th, 2008 17:28
ha mo, Morne Roets, Moses Shohet,


Yes, it's possible.
You will make use of the exec command in php.
string exec ( string command [, array &output [, int &return_var]] )
exec("cmd /c c:\yourprogram.exe ....
You can use this to call another php script to process it in the
background as well.
More details on the php.net site:
http://www.php.net/function.exec
http://www.tantofa.com
http://www.fantofa.com
http://www.mantofa.com
http://www.tanpola.com
http://www.tampola.com
http://www.yamot.com
http://www.mozmar.com
http://www.templatestemp.com