Smoking toooooo much PHP



Example is slightly dated now
0.3 uses
{ success: true, data: .... }
{ success: false, msg: .... }
as response from the server.

#1 - Alan Knowles ( Link) on 05 Oct 2008, 11:30 Delete Comment
calendar
It is what I need :)
#3 - Paul M ( Link) on 25 Oct 2008, 23:43 Delete Comment
Error Occured: Invalid Response: "JSON strng from www.filmer.nl/test/json.php" - undefined
This concept looks very good. I don't won't to store my calendar on google and with caldav you can't get it in mysql. So I am trying this addon.

I have de JSON calendar provider in thunderbird installed. When I want to load a JSON file (http://www.filmer.nl/test/json.php) I get the error in the addon console:

Error Occured: Invalid Response: "[ {"id":"1","uid": "2","dtstart": "2008-10-10 12:12:12","dtend": "2008-10-10 12:12:12","caltype":"C","ical":"BEGIN:VCALENDAR\nVERSION:2.0\nBEGIN:VEVENT\nCREATED:20091003T181005Z\nLAST-MODIFIED:20091003T181009Z\nDTSTAMP:20091003T181009Z\nSUMMARY:New Event\nDTSTART;TZID=Europe/Amsterdam:20091002T084500\nDTEND;TZID=Europe/Amsterdam:20091002T094500\nEND:VEVENT\nEND:VCALENDAR"} ] " - undefined

Can somebody confirm that this is a good json-file example. Otherwise can somebody give a tip?

Thanks Andries Filmer
#4 - Andries Filmer ( Link) on 04 Oct 2009, 03:22 Delete Comment
Just another php script
Hello Alan,

Thanks very much for making json-calendar-provider.
Finally I have json-calendar-provider working. Maybe someone can use this (different) code.

http://kb.filmer.nl/70/Calendar---JSON---MySQL---PHP
http://kb.filmer.nl/scripts/php/json-calendar-provider-example-php.txt

Still I have some errors with update en insert items in json-calendar-provider and have to refresh the calendar.
#5 - Andries Filmer ( Link) on 16 Nov 2009, 19:05 Delete Comment


Add a comment (requires javascript!)

Name
Email
Homepage
Comment Title
Comment
 
Don't bother spamming, I will just delete the comments
Contact me at alan@akbkhome.com