Jump to content

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

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • 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.