Click to See Complete Forum and Search --> : timeout problem in PHP


rei
08-30-2004, 05:01 AM
i'm coding a php program which will call a shell script through a button.

program : myprogram.php
shell program to be called myshell.sh

When the button is clicked, myshell.sh is executed, and result is displayed in a textarea in the original php program (myprogram.php)
<FORM METHOD=post ACTION=$_PHP[SELF]>

Now, i'm facing problem that, myshell.sh works for around 3 hours(doing large calculations), and i'm afraid of time out problem with php or apache.

I read on the website that i can set the php.ini to
set_time_limit(0)

Does this means that my php will hang there until the process is being finished?

How about apache time out?

What should i basically do to enable calculation working for 3 hours without any timeout problem occuring?

sciguyryan
08-30-2004, 05:29 AM
Have a look at this: http://uk2.php.net/manual/en/function.set-time-limit.php


As far as I can see that is to set the number of seconds a script is allowed to run for not what you ask.




RyanJ