Reply to Re: Newbie needs a workaround - No Cron Jobs on Godaddy shared server!

Your name:

Reply:


Posted by MaKroZ on 10/20/71 11:38

On Sun, 29 Jan 2006 16:20:03 -0800, roblevintennis wrote:

> 4? I need some logic to make sure it ONLY checks the db once a day
> otherwise someone could hack me into making mulitple calls, etc.
> Perhaps a log file that logs
> <made_call_today>true</made_call_today><tstamp>'todaysdate'<tstamp>.
>
Since you're going to do something with your mysql db, use it for logging
too. Create a table where you will store timestamps of your script's runs.
Then check for the latest time the script ran and do the job if enough
amount of time elapsed since.

PS: That script can be called not only from your home pc. It also can be
called from your index page that in its turn is called a number of times a
day. With the timestamp checking logic it won't take too much resources.

--
nn My bookmarks:
(oo) http://www.yakutia.org
| | http://www.theisplist.com
|/\| http://www.tenpieces.com

[Back to original message]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация