使用 PHP 创建 iCal 日历事件
我正在尝试创建一个 PHP 脚本来在 iCal 中创建日历事件。我在这里和 Google 中进行了搜索,只得到了有关将 iCal 事件导入 PHP 制作的日历的结果。这与我需要的相反。
我没有任何代码要包含,因为我没有起点。关于我应该从哪里开始有什么建议吗?
I am trying to create a PHP script that will create a calendar event in iCal. I have searched here and in Google and only come up with results that talk about importing iCal events to a PHP-made calendar. This is the opposite of what I need.
I don't have any code to include because I have no starting point. Any suggestions on where I should start?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(3)
几年前,我开始编写一个 iCalendar 库。它正处于相当 alpha 阶段(我几乎已经放弃它),当时还没有 PHP 5,并且其中没有很多功能,但是:
希望它有所帮助:
A few years ago I had started writing an iCalendar library. It's in pretty alpha stage (and I 've practically given up on it), at the time there was no PHP 5, and there isn't a lot of functionality in there, but:
Hope it helps:
从这里开始。这将为您提供 calendar 事件的文件格式。那么你可以使用 php 输出一个带有自定义数据的文件:
http://en.wikipedia.org /wiki/ICalendar
我过去曾用它作为项目的参考点。
Start Here. This will give you the file format for an icalendar event. then you can use php to output a file like this with your custom data:
http://en.wikipedia.org/wiki/ICalendar
I've used this as a reference point for projects in the past.
试试这个(来自 https://gist.github.com/jakebellacera/635416)
Try this (from https://gist.github.com/jakebellacera/635416)