note 48837 deleted from ref.exec by tularis

From: Date: Sat, 08 Jan 2005 20:26:25 +0000
Subject: note 48837 deleted from ref.exec by tularis
References: 1  Groups: php.notes 
Request: Send a blank email to php-notes+get-82962@lists.php.net to get a copy of this message
Note Submitter: Kup at produman dot com ---- Just another simple example: Executing php script in background: <? //example1.php exec '/usr/local/bin/php "example2.php" "'.$param1.'" "'.$param2.'" > /dev/null &'); ?> where /usr/local/bin/php - php path testbg.php - script to be executed $param1, $param2 - parameters > /dev/null - redirects the stdout to a file (disables waiting of stdout in example1.php) & - executes script in background mode IN example2.php use <? $param1=$_SERVER['argv'][1]; $param2=$_SERVER['argv'][2]; // to get parameters. ?> Hope it'll help someone and sorry for my english :)

« previous php.notes (#82962) next »