Tech News World, Contacts Samsung Galaxy, Windows 8, Nokia Lumia, Quad Core Smart Phones, HTC smartphone, Google Nexus, MacBook, PayPal

Friday, May 29, 2015

How to run a PHP Script forever

How to run a PHP Script forever - Although I work in the office and a lot of work that makes me tired but still I make a blog Tech News World and still will update it for you because this is part of my hobby who likes the world of technology, especially about the gadget, now we will discuss first about How to run a PHP Script forever because it is the topic that you are now looking for, please refer to the information I provide in the guarantee for you,

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...



so much information about How to run a PHP Script forever

hopefully information How to run a PHP Script forever can provide useful knowledge for you in getting information about the latest gadgets,

just finished your reading article about How to run a PHP Script forever if you feel this article useful for you please bookmark or share using link http://aziin5teens.blogspot.com/2015/05/how-to-run-php-script-forever.html for more people know

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

Related : How to run a PHP Script forever

0 comments:

Post a Comment