OzzyCzech / icalparser

Simple ical parser for PHP
https://ozana.cz
BSD 3-Clause "New" or "Revised" License
59 stars 22 forks source link

Error 500 on large ics file (1.9MB) #62

Closed gaelgerard closed 2 years ago

gaelgerard commented 2 years ago

Hello,

I try to Parse a Google Calendar ICS file.

No problem with my own calendar as I barely use it, it's a small file.

But when I try with my Boss' calendar, I get a 500 server Error because of the large file (1.9MB).

I think I could increase php memory limit but I would like to find a more efficient way.

Is there a method to split the large file for example or another solution?

OzzyCzech commented 2 years ago

Hi,

you can split file to years, that's can help https://github.com/druths/icssplitter

Roman

gaelgerard commented 2 years ago

Thank you for your fast reply!

I used the Python script to extract the 2022-2023 parts of my boss' agenda.

Then imported the two files in a new Google Calendar for my boss.

Now I only import the newly created events and my boss can keep an archive of all his events beginning in 2015 in his Google calendar.