RE: [PHP] How does one run PHP scripts in 'silent mode' ???

From: Date: Thu, 04 Dec 2003 13:54:38 +0000
Subject: RE: [PHP] How does one run PHP scripts in 'silent mode' ???
Groups: php.general 
Request: Send a blank email to php-general+get-171822@lists.php.net to get a copy of this message
[snip] I need to know how to run a php script without it popping open a browser window. $cmd = 'start http://www.somedomain.com/somedir/somefile.php &' exec( $cmd ); I have tried using exec & system with '&' at the end of the command but that does not seem to work. It always opens a browser window even though the script has no echo/print statements in it. [/snip] Normally when executing a file from the command line that you don't want any return you apply the -q attribute $>php -q myScript.php so, probably exec("/full/path/to/php -q doSomething.php");

« previous php.general (#171822) next »