jEvents and calendar updates via cron on Godaddy hosting.
Forum for JEvents 3.0 for Joomla 3.0 and 2.5.
jEvents and calendar updates via cron on Godaddy hosting.
by zipzit » Fri Feb 01, 2013 7:44 pm
Spent a long time getting this to work, thought I'd share with others. I have a simple web site with a calendar display. The calendar info is stored on calendar.yahoo.com I'm using Joomla! 3.0.2 Stable, with JEvents 3.0.4
I was able to import the calendar stuff into jEvents. I have no ideas how often the yahoo site is updated, but it could happen at anytime. As such I want a cronjob to run to keep my site up to date and accurate. The cron run I really want to make is this:
But, the website is hosted on Godaddy. The problem is Godaddy's cron jobs won't support GET requests. (ref: http://support.godaddy.com/groups/web-hosting/forum/topic/404-not-found-error-using-cron-job/?pc_split_value=1 )
Cron execute command is:
where my file jEvents_cronjob.php is defined as:
You will get some php5.ini deprecated errors from godaddy, but they've got to fix that stuff. They say they are working on a fix. Who knows.
And yes, I'm aware of the service offered at http://www.setcronjob.com (ref: http://www.jevents.net/forum/viewtopic.php?f=17&t=3689 )
Two concerns with setcronjob: 1) its free today, but will it be free tomorrow? 2) I like having all my stuff in one location. It may be poorly organized, but at least it's all in one place.
And if you are interested, the web site I'm working on is http://www.ss2racing.com/index.php
--zip
(Las Vegas Nevada, USA)
I was able to import the calendar stuff into jEvents. I have no ideas how often the yahoo site is updated, but it could happen at anytime. As such I want a cronjob to run to keep my site up to date and accurate. The cron run I really want to make is this:
http://my_web_site_url.com/index.php?option=com_jevents&icsid=4&task=icals.reload
But, the website is hosted on Godaddy. The problem is Godaddy's cron jobs won't support GET requests. (ref: http://support.godaddy.com/groups/web-hosting/forum/topic/404-not-found-error-using-cron-job/?pc_split_value=1 )
Cron execute command is:
/web/cgi-bin/php5_3 "$HOME/html/jEvents_cronjob.php"
where my file jEvents_cronjob.php is defined as:
- Code: Select all
<?php
$_REQUEST['option'] = ‘com_jevents’;
$_REQUEST['icsid'] = ‘4’;
$_REQUEST['task'] = 'icals.reload';
include("index.php");
?>
You will get some php5.ini deprecated errors from godaddy, but they've got to fix that stuff. They say they are working on a fix. Who knows.
And yes, I'm aware of the service offered at http://www.setcronjob.com (ref: http://www.jevents.net/forum/viewtopic.php?f=17&t=3689 )
Two concerns with setcronjob: 1) its free today, but will it be free tomorrow? 2) I like having all my stuff in one location. It may be poorly organized, but at least it's all in one place.
And if you are interested, the web site I'm working on is http://www.ss2racing.com/index.php
--zip
(Las Vegas Nevada, USA)
- zipzit
- Posts: 5
- Joined: Fri Jan 25, 2013 11:03 pm
Re: jEvents and calendar updates via cron on Godaddy hosting
by Tonyp » Fri Feb 01, 2013 11:23 pm
Thanks Zip some good work
.
Regards
Tony
Regards
Tony
---------------------------------------
Do not forget if you like JEvents, why not join the CLUB! for priority support and lots of excellent plugin's. JEvents Club
Do not forget if you like JEvents, why not join the CLUB! for priority support and lots of excellent plugin's. JEvents Club
-

Tonyp - Contributor
- Posts: 8715
- Joined: Tue Oct 12, 2010 9:12 pm
- Location: Isle of Man
2 posts
• Page 1 of 1
Return to JEvents 3.0 (Free Access)
Who is online
Users browsing this forum: Google [Bot]

