|
Posted by d on 10/09/10 11:38
<roblevintennis@gmail.com> wrote in message
news:1138580403.399698.121340@f14g2000cwb.googlegroups.com...
> Is there already a tool available for poeple with no cron job access?
> Thanks.
>
> I'm on the economy 'shared server' program with Godaddy. There's no
> root and no cron job available to me...ergh! I want to make a daily
> check on my mysql db (check a field to see if any users need to recieve
> a notification email). I called godaddy and they said there are no
> other tools available (on my plan) for scheduled tasks to run server
> side scripts. I've thought of a twisted workaround but want get some
> feedback on if there's a better/easier way. Here's my solution:
>
> 1. Have a scheduled task on my xp home box daily that points to a
> utility I have called iOpus File Downloader.
> 2. It will make downoad the php page on my site (I've already tested
> and it can do this) and write to a file on my local box.
> 3. The PHP will really function as a background process somehow
> triggering an action of emailing anyone who needs to recieve
> notifications today. However, it will echo a timestamp and since iOpus
> File Downloader writes the output of the page it downloads, I'll
> esentially have a log that my page was hit on that day.
> 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>.
>
> Here's the current godaddy software:
>
> Operating System
> Red Hat Linux
> Kernal
> Version 2.4.21-4.0.1 elsmp
> Web Server
> Apache 1.3
> Web Programming Languages
> PHP 4.3.11
> Tomcat (Java) 5.0.27
> CGI / Perl 5.8
> Python 2.2
> Frontpage 5.0.2.5012
> Databases
> MySQL 4.0.24
If you can't get something to run on that box every day, then have a script
run on your box that simply calls a php page on the target server once a day
(use task scheduler). You can have the script check the
$_SERVER["REMOTE_ADDR"] to see if it's your box, which (provided you don't
access it through a web proxy) should make all but the most determined
hackers attempts fruitless. That php script on the remote box is then
essentially a cron job entry. I think that's what you're getting at anyway
:)
dave
Navigation:
[Reply to this message]
|