Re: Re: Background Process

From: Date: Tue, 26 May 2009 08:55:12 +0000
Subject: Re: Re: Background Process
References: 1 2  Groups: php.general 
Request: Send a blank email to php-general+get-293156@lists.php.net to get a copy of this message
popen will allow you to read/write data to a file but not execute the php code. i am assuming that you want to execute the php script like include/require does.. if that is the case system() will serve your purpose....but this requires php to be installed as a CLI <?php $res = system("path/to/php.exe /path/to/second/file.php"); ?> but as Nathan suggested it would be best for you if you considered alternative options. for example you can make an AJAX request to the second file. Kranthi.

« previous php.general (#293156) next »