diff options
| author | Allen Winter <allen.winter@kdab.com> | 2014-06-28 17:45:24 -0400 |
|---|---|---|
| committer | Allen Winter <allen.winter@kdab.com> | 2014-06-28 17:45:24 -0400 |
| commit | 43858141030ba123a4959231cadc9951b983f0fd (patch) | |
| tree | 8256c1dbf3ca7c9e58a3dbecf07cf826fb2e0ce2 /src/php/test.php | |
| download | libical-git-1.0.0.tar.gz | |
Diffstat (limited to 'src/php/test.php')
| -rw-r--r-- | src/php/test.php | 21 |
1 files changed, 21 insertions, 0 deletions
diff --git a/src/php/test.php b/src/php/test.php new file mode 100644 index 00000000..98ee7c8d --- /dev/null +++ b/src/php/test.php @@ -0,0 +1,21 @@ +<?php + +// '../../../../' is a dirty hack to be able to store LibicalWrap.so in my +// homedir instead of in the machine-global directory + +if (dl('../../../../home/arnouten/dev/libical-0.23/src/php/LibicalWrap.so')) { + print "Success\n"; +} else { + print "Problem\n"; + exit(); +} + +$calstr = `cat /home/qharmony/public_html/kalender/oldcode/cal/calendars/US32Holidays.ics`; + +$calendar = icalcomponent_new_from_string($calstr); + +$comp = icalcomponent_get_first_component($calendar, 1); + +print icalcomponent_as_ical_string($comp); + +?> |
