Hi all

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • muthumeena
    New Member
    • Mar 2007
    • 6

    Hi all

    I have a doubt in PHP

    i want to specify Time to live option for a PHP script. suppose if i am assigning 10 minutes for a script, while running the same the script should expire after 10 minutes. can anybody please help me out in this. Thanks!

    Regards

    Meena
  • michaelb
    Recognized Expert Contributor
    • Nov 2006
    • 534

    #2
    I think what you need is the set_time_limit function.

    Comment

    • muthumeena
      New Member
      • Mar 2007
      • 6

      #3
      thanks a lot!!!

      i would definitely make a try with it.

      Comment

      • muthumeena
        New Member
        • Mar 2007
        • 6

        #4
        the function set_time_limit( int seconds) is not working. do i have to change anything in php.ini file

        Regards

        Meena

        Comment

        • vssp
          Contributor
          • Jul 2006
          • 268

          #5
          Originally posted by muthumeena
          the function set_time_limit( int seconds) is not working. do i have to change anything in php.ini file

          Regards

          Meena

          Cron job is another way to set the time limit to run the script

          Comment

          Working...