Hey Chris, I've had my websites moved to a new server with both php4
& php5. And it appears they've installed the needed PEAR modules for me also.
You can see what I'm getting here:
http://www.birchy.com/sandbox/get_event.php
I thought it was only partially working, but I see now that there is
a Description node that contains a paragraph of text.
I just need some of the basic data extracted to a mySQL table:
who, what, when, where, eventful.com link, etc ones that are
contained in every node.
I'm pretty sure I can go it alone, if I had some example code that
extracts the number of records, and shows how to extract the node
values for each record.
At 03:52 PM 10/7/2009, Chris Radcliff wrote:
Hi James,
Your code looks good in general, but you'll want to use the older
Services_EVDB for PHP4:
http://api.eventful.com/libs/Services_EVDB
It's very similar, so you should be able to swap 'Services_Eventful'
with 'Services_EVDB' in your code sample. The result ($event) is an
XML_Unserializer data structure, so getting the events is pretty
simple: $event->event[0]->title and so forth.
http://pear.php.net/reference/XML_Serializer-0.6/XML_Serializer/XML_Unserializer.html
Let me know if you have any questions.
Cheers,
Chris Radcliff
[email protected]
On Oct 6, 2009, at 9:07 PM, =James Birkholz= wrote:
The only sample code for php that I could find was the below:
I uploaded Services/Eventful.php into a test directory on the acct
on my hosted server.
I uploaded get_event.php into the test directory.
After playing with it and pieces clues together from the website, I
realize that this sample doesn't do what I want.
1) will Eventful.php work with php4? ( I'm not on a php5 server, yet)
2) where can I find examples to use the api in php to get all public
events for a zip code and then parrse them into some container that
I can manipulate in php?
James Birkholz
========================================================
administrator (Betreuer der), Posen-EN mailing list & website
http://Posen-L.com & http://Birchy.com/GenWiki
========================================================
Site Coordinator: CC(D)HS at ClassReports.org
Admin: Class of '76 http://www.classreport.org/usa/mt/miles_city/ccdhs/1976/
========================================================
Organizer: DFW Church Facilities Managers
========================================================