I am in the process of orting out our google calander but i have a problem PHP Code:
<?php
$url_to_check = "googlecalander.com/somecalandertest/basic";
class googlecalander_output {
var $show_past_events = FALSE;
var $sort_ascending = TRUE;
var $orderby_by_start_date = TRUE;
var $expand_single_events = TRUE;
function check_url($url_to_check){
$tmp = str_replace("/basic","/full",$url_to_check);
if(!strpos($tmp,'?'))
$tmp = $this->append($tmp,'?');
else{
if(!(substr($tmp, -1) === '&'))
$tmp = $this->append($tmp,'&');
}
if($this->show_past_events)
$tmp = $this->append($tmp,'futureevents=false&');
else
$tmp = $this->append($tmp,'futureevents=true&');
if($this->sort_ascending)
$tmp = $this->append($tmp,'sortorder=ascending&');
else
$tmp = $this->append($tmp,'sortorder=descending&');
if($this->orderby_by_start_date)
$tmp = $this->append($tmp,'orderby=starttime&');
else
$tmp = $this->append($tmp,'orderby=lastmodified&');
if($this->expand_single_events)
$tmp = $this->append($tmp,'singleevents=true&');
else
$tmp = $this->append($tmp,'singleevents=false&');
return $tmp;
}
$feed = temp
}?>
echo $feed;
it will eventually put on an internal web so that people can put in any google cal xml rss url and depending on setting will change the url and at the moment display it but eventually I will use the $feed to feed it to another programme as a correctly formated feed.
at the moment nothing happens $feed is blank this is not my code but orignal code does not work either