Well that should be it!
Other
I have now got the Crontab(the process on a Unix box that will do a job at a submitted time) working for the Mobblog so I can of course now send and the blog will automatically pickup any entry every half an hour.
Basically an entry in cron is need so this is done by:
ssh into your server
crontab -e (this will edit the Crontab in Vi or create a new one if needed)
01,31 * * * * /usr/local/bin/php -q /home/blog.timc3.com/myscript.php
:wq
crontab -l (to check)
cd /home/blog.timc3.com
chmod +x myscript.php
Now that should be it really. In your PHP script you don’t really want any HTML or what ever and you should put an entry into the start of the file as:
#! /usr/local/bin/php
In the examples I have given I have changed the file names etc, so you should change them to your own. For debugging check out the Cron logs..
comments powered by Disqus