Hi Folks,
I got a problem with an asynochrnous call of another program within a
php-script:
If the php-script is called a second time, WITH a session (using cookies) it
is blocked
untill the command is finished. (This happens even if I just call a
different script, that uses
the session)

It works absolutely fine, if I dont use sessions (eg. just reject the cooky)

Any sugestions ?

martin harm [EMAIL PROTECTED]

PS: Using PHP.4.0.5 on Linux


Test-Script:

<?
session_start();
$para=intval($para);
// Start of the job
if ($para) {
    session_register('job');
    $job->logfile = tempnam("/tmp/","LOG_");
    $cmd="nohup perl asyn_proc.pl $para 1> $job->logfile 2>&1 &";
    exec($cmd);
}
?>
<html><body>
<form>
Parameter: <input type=text name="para">
<input type=submit value="Start">
</form>
</body></html>




-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]

Reply via email to