This is about : How to run a PHP Script forever
And this article : How to run a PHP Script forever
How to run a PHP Script forever
Hi,
Its been 3-4 days posting here,due to some work on the construction of some AutoBot Servers.At last ,it finally came to a stable end.Will soon be disclosed to you.
Introduction
Today i am gonna help some PHP developers want to run their server tireless with a PHP script.Its just an easy work around,so that the script will work out forever until a Fatal error or something happened.
What will you face without using this work around?
Yes it's simple.You will just get an error stating.
The php's default maximum execution time is 30 seconds.
How to bypass the time restriction with just a single line of code or a function call?
That's it you can make your php script run forever or for a limited amount of time.
Here is an advise,please code your script properly.So that it may end in an unwanted end loop.
For ever PHP scripts are mostly used in realtime web applications.
Enjoy coding...
Its been 3-4 days posting here,due to some work on the construction of some AutoBot Servers.At last ,it finally came to a stable end.Will soon be disclosed to you.
Introduction
Today i am gonna help some PHP developers want to run their server tireless with a PHP script.Its just an easy work around,so that the script will work out forever until a Fatal error or something happened.
What will you face without using this work around?
Yes it's simple.You will just get an error stating.
Fatal error : Maximum execution of 30 seconds exceeded.
The php's default maximum execution time is 30 seconds.
How to bypass the time restriction with just a single line of code or a function call?
<?php
ini_set('set_time_limit', 0);//Time limit is set to zero.That means infinite.
//OR
ini_set('set_time_limit',1800);//Time limit is set to 1800 seconds ie,30 minutes.
?>
That's it you can make your php script run forever or for a limited amount of time.
Here is an advise,please code your script properly.So that it may end in an unwanted end loop.
For ever PHP scripts are mostly used in realtime web applications.
Enjoy coding...
Information How to run a PHP Script forever has been completed we present
A few of our information about the How to run a PHP Script forever, we hope you benefit from this article
You have just read the article How to run a PHP Script forever and many articles about gadget in our blog this, please read it. and url link of this article is https://howtomonetizeeverything.blogspot.com/2015/05/how-to-run-php-script-forever.html Hopefully discussion articles on provide more knowledge about the world of tech gadgets.
Tag :
0 Response to "How to run a PHP Script forever"
Post a Comment