Results 1 to 2 of 2
  1. #1
    Join Date
    Jul 2004
    Posts
    30

    Unanswered: timeout problem in PHP

    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?

  2. #2
    Join Date
    Jan 2004
    Location
    India
    Posts
    168
    you can use this function set_time_limit(0) fro php's time out. For apache you have to make the changes in the httpd.conf or in the .htaccess file as per your permissions.

    Regards
    Rajesh

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •