I did some searching on parsing xml namespaces in php and found this
script below.
But I am getting an Invalid argument supplied for foreach() ... which
means $xml is not receiving an array.
Can someone confirm if I am headed down the right track or if there
might be an issue with simplexml and the google calendar api that I
may not be aware of ... just trying to streamline my troubleshooting
with this. Thx
$feed = file_get_contents("https://www.google.com/calendar/feeds/
bhglaar%40gmail.com/public/full?max-
results=25&singleevents=true&futureevents=true&sortorder=a&orderby=starttime");
$xml = new SimpleXmlElement($feed);
foreach ($xml->channel->item as $entry){
$title = $entry->title;
echo $title;
}
>
> On May 2, 2:01 pm, Ray Baxter <[email protected]> wrote:
>
>
> > I wasn't clear. What is the full url where you are pulling the events,
> > including parameters?
>
> > When I
> > pullhttps://www.google.com/calendar/feeds/bhglaar%40gmail.com/public/full...
>
> > I get lots of gd:when elements. Here's the first one:
>
> > <gd:when endTime="2011-05-02T15:00:00.000-07:00"
> > startTime="2011-05-02T13:30:00.000-07:00"/>
>
> > So, I don't understand your issue.
>
> > Ray
>
> > On Mon, May 2, 2011 at 1:19 PM, Maurice Stephens <[email protected]
>
> > > wrote:
> > > Here is the URL ... Thank you.
>
> > >http://dev.bhglaar.com/education/eventcalendar.php
>
> > > Notice I'm just pulling in the raw feed from the /full query string. Items
> > > are in orderby=starttime but starttime or date is not displayed
>
> > > --
> > > You received this message because you are subscribed to the Google
> > > Groups "Google Calendar Data API" group.
> > > To post to this group, send email to
> > > [email protected]
> > > To unsubscribe from this group, send email to
> > > [email protected]
> > > For more options, visit this group at
> > >http://code.google.com/apis/calendar/community/forum.html
--
You received this message because you are subscribed to the Google
Groups "Google Calendar Data API" group.
To post to this group, send email to
[email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://code.google.com/apis/calendar/community/forum.html