Jump to content


Photo

Cron Jobs - running from remote server


  • Please log in to reply
23 replies to this topic

#21 ober

ober
  • Staff Alumni
  • Advanced Member
  • 5,337 posts
  • LocationEast Coast, USA

Posted 11 September 2006 - 04:23 PM

I'm almost 100% sure you cannot "exec" a file on a remote server.  You would have to include the file.

Info: PHP Manual


#22 mainewoods

mainewoods
  • Members
  • PipPipPip
  • Advanced Member
  • 685 posts
  • LocationMaine

Posted 11 September 2006 - 04:36 PM

maybe you can just use the file_get_contents function:

Name: cron.php on friends server, runs every 15 minutes
**********************
<?
   file_get_contents("http://yourgodaddysite.com/runit.php") ;
?>


#23 cohan1279

cohan1279
  • Members
  • PipPip
  • Member
  • 24 posts

Posted 11 September 2006 - 04:50 PM

very simple, get visual cron http://www.visualcron.com/ i ran into the same problem as you and found this. its set up real nice and easy. i cant recall the cost but you can try it free. youll have to download the program and set up your jobs through it on your computer, just add the url to the cron script on your site and the times to run, then the sever from visual cron does it.

#24 Wildhalf

Wildhalf
  • Members
  • PipPipPip
  • Advanced Member
  • 101 posts

Posted 11 September 2006 - 05:35 PM

thanks all.... Ill give it a go later and tell you how it goes




0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users