hi,
there is a script or something that can read this file?
http://ical.imac.com/ical/portuguese32holidays.ics

the ideia is to save all days and holidays for a mysql and
then update time to time.
thanks for your help
:)

Recommended Answers

All 4 Replies

The link address isn't valid.

ics file is sort of xml structure.
You can find xml php parser or xmltoarray function like this and then can save its value in mysql database.

I believe the link was supposed to be http://ical.mac.com/ical/Portuguese32Holidays.ics

.ics is commonly associated with the iCalendar format and is actually a standard. iCalendar is not an xml format.
xCal is the xml representation of iCalendar format

The content of that file if you open it with a text editor is not in xml format but in the more common iCalendar format.

http://lmgtfy.com/?q=parse+iCalendar%2C+php

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.