View Single Post
Old 10-05-2005, 06:23 AM   #2
Charter
Head Mole
 
Charter's Avatar
 
Join Date: May 2003
Posts: 2,539
Not quite the same way, but you could use an IMG tag that runs the cron:
Code:
<img src="cron.php" width="1" height="1" border="0">
The cron.php file should contain something like the following:
Code:
header("Location: http://www.domain.com/images/dot.gif");
do_my_cron();
Where the do_my_cron function contains the PHP code you'd like to run.

If you use this method, then anytime some hits a page containing your IMG tag, your cron job is run.
__________________
Responses are offered on a voluntary if/as time is available basis, no guarantees. Double posting or bumping threads will not get your question answered any faster. No support via PM or email, responses not guaranteed. Thank you for your comprehension.
Charter is offline   Reply With Quote