I want to make a page of php that run automatically on decided time but i am confused about threads in php. Is there any possibility that a separate file run on server and check database entries without user request, like background thread.
Please Help…!
You’re talking about a cron. Basically the request is done for your without user intervention. When running a cron job, PHP is (usually) run through CLI mode. Keep in mind that some super globals like $_SERVER will contain different values. But ideal for hitting the DB and doing other utility tasks.
http://articles.sitepoint.com/article/introducing-cron