Re: asynchronous PHP to PHP call

From: Date: Tue, 13 Sep 2005 21:16:14 +0000
Subject: Re: asynchronous PHP to PHP call
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-222297@lists.php.net to get a copy of this message
James wrote:
I have a PHP script running on server 1. I want it to call another script on server 2 to clean up some files. There may be tons of files and I don't want to wait until the second script is finished. Is there a way to asynchronously call the second PHP script? Right now I'm using fopen() to call the script on the second server.
Set ignore_user_abort in the second script and close the socket immediately. Untested, but conceptually it should work. -- Jasper Bryant-Greene Freelance web developer http://jasper.bryant-greene.name/

« previous php.general (#222297) next »