note 113531 added to function.exec

From: Date: Fri, 25 Oct 2013 23:14:29 +0000
Subject: note 113531 added to function.exec
Groups: php.notes 
Request: Send a blank email to php-notes+get-197324@lists.php.net to get a copy of this message
Hello, i try to do a php script to open and close firefox (version 24.0) automaticaly. The code is : <?php //opening firefox exec('"C:\Program Files\Mozilla Firefox\firefox.exe"'); //Waiting a moment to let firefox charging sleep(20); //Closing firefox exec("TASKKILL /IM firefox.exe /F"); ?> But i have a problem, the navigator open succefully but it still opened long time until i close it manuelly and then it waiting 20 seconds and tell me that there is no processus firefox to kill. Please i need your help as soon as possible. Hello. ---- Server IP: 192.41.45.150 Probable Submitter: 41.143.225.200 ---- Manual Page -- http://php.net/manual/en/function.exec.php Edit -- https://master.php.net/note/edit/113531 Del: integrated -- https://master.php.net/note/delete/113531/integrated Del: useless -- https://master.php.net/note/delete/113531/useless Del: bad code -- https://master.php.net/note/delete/113531/bad+code Del: spam -- https://master.php.net/note/delete/113531/spam Del: non-english -- https://master.php.net/note/delete/113531/non-english Del: in docs -- https://master.php.net/note/delete/113531/in+docs Del: other reasons-- https://master.php.net/note/delete/113531 Reject -- https://master.php.net/note/reject/113531 Search -- https://master.php.net/manage/user-notes.php

« previous php.notes (#197324) next »