Advertisement
Guest User

Untitled

a guest
May 25th, 2011
811
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.35 KB | None | 0 0
  1. <?php
  2. //This is the most important coding.
  3. header("Content-Type: text/Calendar");
  4. header("Content-Disposition: inline; filename=filename.ics");
  5. echo "BEGIN:VCALENDAR\n";
  6. echo "PRODID:-//Microsoft Corporation//Outlook 12.0 MIMEDIR//EN\n";
  7. echo "VERSION:2.0\n";
  8. echo "METHOD:PUBLISH\n";
  9. echo "X-MS-OLK-FORCEINSPECTOROPEN:TRUE\n";
  10. echo "BEGIN:VEVENT\n";
  11. echo "CLASS:PUBLIC\n";
  12. echo "CREATED:20091109T101015Z\n";
  13. echo "DESCRIPTION:How 2 Guru Event\\n\\n\\nEvent Page\\n\\nhttp://www.myhow2guru.com\n";
  14. echo "DTEND:20091208T040000Z\n";
  15. echo "DTSTAMP:20091109T093305Z\n";
  16. echo "DTSTART:20091208T003000Z\n";
  17. echo "LAST-MODIFIED:20091109T101015Z\n";
  18. echo "LOCATION:Anywhere have internet\n";
  19. echo "PRIORITY:5\n";
  20. echo "SEQUENCE:0\n";
  21. echo "SUMMARY;LANGUAGE=en-us:How2Guru Event\n";
  22. echo "TRANSP:OPAQUE\n";
  23. echo "UID:040000008200E00074C5B7101A82E008000000008062306C6261CA01000000000000000\n";
  24. echo "X-MICROSOFT-CDO-BUSYSTATUS:BUSY\n";
  25. echo "X-MICROSOFT-CDO-IMPORTANCE:1\n";
  26. echo "X-MICROSOFT-DISALLOW-COUNTER:FALSE\n";
  27. echo "X-MS-OLK-ALLOWEXTERNCHECK:TRUE\n";
  28. echo "X-MS-OLK-AUTOFILLLOCATION:FALSE\n";
  29. echo "X-MS-OLK-CONFTYPE:0\n";
  30. //Here is to set the reminder for the event.
  31. echo "BEGIN:VALARM\n";
  32. echo "TRIGGER:-PT1440M\n";
  33. echo "ACTION:DISPLAY\n";
  34. echo "DESCRIPTION:Reminder\n";
  35. echo "END:VALARM\n";
  36. echo "END:VEVENT\n";
  37. echo "END:VCALENDAR\n";
  38. ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement