How to call another PHP script from a PHP script?

Posted by Jagira on Stack Overflow See other posts from Stack Overflow or by Jagira
Published on 2010-03-22T06:34:04Z Indexed on 2010/03/22 6:41 UTC
Read the original article Hit count: 281

Filed under:

Hello,

I have a PHP script that has a runtime of 34 seconds. But it dies after 30 seconds. I guess my webhost a time limit of 30 seconds.

I am thinking of splitting the script into two parts say PHP-1 and PHP-2.

Can I call PHP-2 from PHP-1 and kill PHP-1? Both scripts have to run in sequence, so calling both of them using cron is not possible. [ My host provides cron with interval 5 mins and does not allow to change the start time]

-Will this circumvent the time limit set by host?

© Stack Overflow or respective owner

Related posts about php