Tech News Today, Marshmallow Custom Rom, Huawei, Run Programs, Network, Chromebook, Bank Account

Jumat, 29 Mei 2015

How to run a PHP Script forever

How to run a PHP Script forever - To all visitors of this blog, I say welcome and thank you for visiting the blog Tech News Today Look for all the things you need that are available on this blog. If not available, please leave suggestions and comments for the development of this blog. now we will discuss first about How to run a PHP Script forever we have collected a lot of information from sources to create this article, so please see.

Articles : How to run a PHP Script forever
full Link : How to run a PHP Script forever

You can also see our article on:


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.

php script timeout or php script run forever


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 in the discussion.

hopefully the article we give the title How to run a PHP Script forever can provide knowledge for you in living everyday life in determining the gadget that suits your needs.

you just read the article about How to run a PHP Script forever if this article is useful for you and want to bookmark it or share it please use the link https://sihanandi.blogspot.com/2015/05/how-to-run-php-script-forever.html thank you and do not forget to comment if anyone.

Tag :
Share on Facebook
Share on Twitter
Share on Google+
Tags :

Related : How to run a PHP Script forever

0 komentar:

Posting Komentar