faqts : Computers : Programming : Languages : PHP : General Information : PHP5

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

3 of 12 people (25%) answered Yes
Recently 3 of 10 people (30%) answered Yes

Entry

Does exec() in PHP5 wait until command is finished?

Dec 10th, 2005 15:42
Carey Brown, Richard Boenigk,


From my experiances, yes it does. I wrote a php page to
start/stop/restart specific services on a server. The page only takes a
second to load and checking with a terminal session confirms that when
the page finishes loading, the command completed execution.