doucheyi1347 2009-08-21 12:31
浏览 46
已采纳

PHP脚本:下载ics文件

I'm setting up a feature for "exporting as ics file" (iCal) our weekly school agenda. The download prompt works but when opening it in iCal (Mac OS X), iCal tells me the calendar is invalid. I opened the file in a text editor and it looks ok to me.

I suspect my download.php script is wrong or setting the wrong mimetype.

I tried text and text/calendar. No luck.

So my question is this: what's the correct mimetype for ics files?

  • 写回答

3条回答 默认 最新

  • duanma8207 2009-08-21 12:35
    关注

    iCalendar data has the MIME content type text/calendar.

    Wikipedia

    If you're saving it then loading it, I doubt that's the problem though - check your data, charset, line endings...

    本回答被题主选为最佳回答 , 对您是否有帮助呢?
    评论
查看更多回答(2条)

报告相同问题?

悬赏问题

  • ¥15 3D多模态医疗数据集-视觉问答
  • ¥20 设计一个二极管稳压值检测电路
  • ¥15 内网办公电脑进行向日葵
  • ¥15 如何输入双曲线的参数a然后画出双曲线?我输入处理函数加上后就没有用了,不知道怎么回事去掉后双曲线可以画出来
  • ¥50 WPF Lidgren.Network.Core2连接问题
  • ¥15 soildworks装配体的尺寸问题
  • ¥100 有偿寻云闪付SDK转URL技术
  • ¥30 基于信创PC发布的QT应用如何跨用户启动后输入中文
  • ¥20 非root手机,如何精准控制手机流量消耗的大小,如20M
  • ¥15 远程安装一下vasp