timeout problem in PHP
Posted: Mon Aug 30, 2004 8:10 pm
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?
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?