July 12, 2006

PHP Cron Jobs

There are many ways to add a cron job that calls a php script - and it really depends on how your server is setup.

Here’s some example setups:

/usr/local/bin/php /home/user/public_html/script.php

lynx -dump http://www.example.com/script.php

/usr/bin/curl http://www.example.com/script.php

I found out about the last way of loading a cron with a php script because the lynx version was giving me permission errors and the /usr/local/bin/php method just wouldn’t work.

Share:These icons link to social bookmarking sites where readers can share and discover new web pages.
    del.icio.us digg Fark YahooMyWeb Reddit blinkbits BlinkList blogmarks co.mments connotea De.lirio.us feedmelinks Furl LinkaGoGo Ma.gnolia NewsVine Netvouz RawSugar scuttle Shadows Simpy Smarking Spurl TailRank Wists
Filed under Web, PHP by admin.
Permalink • Print • 

Leave a comment