dmschenk Posted October 3, 2007 Share Posted October 3, 2007 I am trying to create a .ics file using php and mysql but am lost. I have my database created and can pull everything into the php page but I'm lost on how to convert that to an .ics file. Can someone please explain how to do this? Thanks Dave Quote Link to comment https://forums.phpfreaks.com/topic/71686-ics-file-creation/ Share on other sites More sharing options...
micah1701 Posted October 3, 2007 Share Posted October 3, 2007 are you talking about a calendar file? its kind of like creating an xml document with php. what do you have so far? Quote Link to comment https://forums.phpfreaks.com/topic/71686-ics-file-creation/#findComment-360886 Share on other sites More sharing options...
dmschenk Posted October 3, 2007 Author Share Posted October 3, 2007 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 Quote Link to comment https://forums.phpfreaks.com/topic/71686-ics-file-creation/#findComment-360931 Share on other sites More sharing options...
micah1701 Posted October 3, 2007 Share Posted October 3, 2007 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 Quote Link to comment https://forums.phpfreaks.com/topic/71686-ics-file-creation/#findComment-361115 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.