Hi all,
I am in need of good suggestion from PHP Developers.
I want to run background script, which will run 24 hours a day. What i need is the program will connect to a remote SMPP Provider (SMS Gateway), and the gateway will be connected or Alive 24 hours. In that Program in specific interval , the databse will be polled for new entries, if new items the code will take and send the messages. My question is can i use a program to run 24 hours and access database. Is there any overhead in server or database. I want to use Dedicated or VPS Server.
Please help me with your suggestions and possiblities (Errors ) also.
Thanks
PHP - Script continuous execution
Moderator: General Moderators
Re: PHP - Script continuous execution
It can run 24 hours, and overload depends on how the program is written. Usually I put few seconds sleep after each check to the remote database on such programs..
Re: PHP - Script continuous execution
Okay,
Actually my main aim is to be connected live with another host with a specifi port address. So that it can give some data to the application. Not in every second. But neds to be live online 24 hours. I am haivng a dedicated server. Is there is any issue if we try database checking in every 1 minute intervl.
Thanks
Actually my main aim is to be connected live with another host with a specifi port address. So that it can give some data to the application. Not in every second. But neds to be live online 24 hours. I am haivng a dedicated server. Is there is any issue if we try database checking in every 1 minute intervl.
Thanks