faqts : Computers : Programming : Languages : PHP : Not Quite PHP : Unix

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

31 of 44 people (70%) answered Yes
Recently 7 of 10 people (70%) answered Yes

Entry

How do I run Unix command (i.e. file) within PHP code?

Sep 19th, 2002 08:03
Philip Olson, Chloe Lam, Chloe Lam


A useful chapter, Program Execution, discusses how-to execute commands 
on the system itself.
  http://www.php.net/manual/en/ref.exec.php 
Regarding this being "safe" or not, that depends on your individual 
setup and system.  Also consider:
  http://www.php.net/escapeshellarg