Re: PHP running Python script - not waiting for Python script to finish

From: Date: Tue, 09 Jun 2009 08:11:02 +0000
Subject: Re: PHP running Python script - not waiting for Python script to finish
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-293794@lists.php.net to get a copy of this message
Adrian Price-Whelan wrote: > Hey - > > Running these on a Linux server with PHP 5 and Python 2.5. > > My problem is this: I have a simple php form that executes a long (~3 > minutes) Python script using the 'exec' function from php. The issue > is that the browser, I think, 'times out' before the Python script is > finished and therefore kills Python and displays no output from > Python. After some intense googling, I haven't found an answer, Can't you just change whichever timeout it is that terminates your script? /Per -- Per Jessen, Zürich (17.2°C)

« previous php.general (#293794) next »