PhpDig.net

Go Back   PhpDig.net > General Forums > Coding & Tutorials

Reply
 
Thread Tools
Old 10-04-2005, 07:29 PM   #1
rkphpdev
Green Mole
 
Join Date: Oct 2005
Posts: 1
alternative to Cron

I am using a hosting service and they donot support cron.

I need guidances on alternatives to make my php scripts work on the same way they would have worked in cron.

Would appreciate help

Thanks - rk
rkphpdev is offline   Reply With Quote
Old 10-05-2005, 07: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
Reply


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Looking for cron tutorial grassmonster How-to Forum 0 07-07-2007 10:33 AM
cron again xdaniel Bug Tracker 4 05-12-2005 08:33 AM
Win2000 Cron duffy Troubleshooting 2 12-16-2004 05:43 AM
SSH alternative? ark2424 How-to Forum 1 12-07-2004 03:33 AM
Alternative to Cron job? jirving Troubleshooting 1 09-29-2003 05:07 PM


All times are GMT -8. The time now is 04:29 AM.


Powered by vBulletin® Version 3.7.3
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright © 2001 - 2005, ThinkDing LLC. All Rights Reserved.