note 14283 added to function.exec.php

From: Date: Wed, 25 Jul 2001 05:40:03 +0000
Subject: note 14283 added to function.exec.php
Groups: php.notes 
Request: Send a blank email to php-notes+get-15806@lists.php.net to get a copy of this message
The usual system() in background. I'm trying to use the following command to launch a long running php script into the background and return the browser to the user immediately and let it run in the background. I'm not worried about multiple executions as I've set limits on this elsewhere. system("(/usr/bin/lynx -auth=$Client_Username:$Client_Password -dump \"http://someurl.php?User=$Client_Num&List=$listchoice[$i]&Letter=$letterchoice\" | mail -s \"Results of the list submission you made.\" $Client_Email)&"); It waits for a return, and the delay can be huge. I do not wish to impose a wait on the end user so increasing the timeout isn't an option. What am I missing? I've tried several of the suggestions here to no avail. http://www.php.net/manual/en/function.exec.php

« previous php.notes (#15806) next »