Jump to content

ics File Creation


dmschenk

Recommended Posts

Yes it is a calendar file and the php so far is exactly like spoofing an xml file except in this case I'm looking to do is to have the php create an actual calendar.ics when the DB is updated. Thats the part I get stuck at.  I thought I saw at one time, a write command or something in php but I don't remember what it was.  I thought that might help

 

Dave

Link to comment
https://forums.phpfreaks.com/topic/71686-ics-file-creation/#findComment-360931
Share on other sites

if i understand what you're asking...

 

you need to start your php file with:

 

<?php
    header("Content-Type: text/x-vCalendar");
    header("Content-Disposition: inline; filename=MyvCalFile.vcs");

// then here's all your output for the file

?>

 

here's what I googled on the subject:

http://www.phpbuilder.com/columns/chow20021007.php3?print_mode=1

 

Link to comment
https://forums.phpfreaks.com/topic/71686-ics-file-creation/#findComment-361115
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.