teekay_tk Posted December 15, 2008 Share Posted December 15, 2008 Hi, I am new to php, and seeking some help. I have a gsm modem that sends a file by FTP to a third party hosted server (running direct admin, apachi, php mysql etc). This file contains GPS locations and time date etc. My simple php script converts this to KML file for viewing by Google Earth. Until this script is run by a client side browser, it will not get run and there is a chance that the FTP file (which is being periodically over writen) may not get parsed and the KML may be missing data. This means I have to hit the refrest button on my Firefox every fifteen mintues Is it possible to get the php script to run server side automatically ( periodically). rather than be invoked by the client browser. I am new to this and i hope i have been able to explain my question well. Regards Quote Link to comment Share on other sites More sharing options...
corbin Posted December 15, 2008 Share Posted December 15, 2008 cron ;p Quote Link to comment Share on other sites More sharing options...
teekay_tk Posted December 16, 2008 Author Share Posted December 16, 2008 sorry sir! but i think for that i need to be sys admin and currently website hosted in thirdparty shared hosting space. am i right? cron ;p Quote Link to comment Share on other sites More sharing options...
corbin Posted December 16, 2008 Share Posted December 16, 2008 Then you could write a script that does something and sleeps (http://php.net/sleep), but trust me, the cron way would be better. Often shared hosting still offers cron capabilities, usually in a control panel of some kind. Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.