Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 6162343
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 23, 20262026-05-23T21:38:15+00:00 2026-05-23T21:38:15+00:00

I am looking for specifics in creating an iCal feed, for use in applications

  • 0

I am looking for specifics in creating an iCal feed, for use in applications such as Google Calendar and on peoples phones.

I currently have a script using the iCalendar class that when the url is visited, an ics file is created and sent to the browser:

  function returnCalendar() {
    $filename = $this->getConfig( 'filename' );
    $output   = $this->createCalendar();
    $filesize = strlen( $output );
    if( 'xcal' == $this->format )
      header( 'Content-Type: application/calendar+xml; charset=utf-8' );
    else
      header( 'Content-Type: text/calendar; charset=utf-8' );
    header( 'Content-Length: '.$filesize );
    header( 'Content-Disposition: attachment; filename="'.$filename.'"' );
    header( 'Cache-Control: max-age=10' );
    echo $output;
    die();
  }

I would like (as I previously mentioned) to create a feed (a unique url per user), and was wondering about the techicalities of this? I was thinking I would need a cronjob to just generate a calandar for everyone and then link users to this feed, however this seems very inefficient if say only one user is using the feed.

Would it be possible to set the script to only run when someone requested a calandar and then send them the appropriate one back?

Does anyone know how often Google Calandar etc updates, how it works and how I can test it?

Many thanks for your time,

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-23T21:38:15+00:00Added an answer on May 23, 2026 at 9:38 pm

    I would use the iCal calandar class for PHP, then link the users to a PHP file which does live generation (possibly with some sort of half an hour cache system to stop it being bombarded).

    Using a cronjob for generation of data would be kind of heavy on the cpu usage!

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I'm just looking a big picture idea here; I can google specifics once provided
I have been creating a web app and am looking to expand. In my
I'm currently creating a WPF app in C# and have been following this diagram
I have a very specific set of needs and am looking for a library
I have a specific information in a table I am looking for, this query
I'm looking to construct a script that would go through an XML file. Would
I'm looking for an editor/IDE that can provide features that are nice to have
I've been looking on SO this morning to find a way of creating a
I'm looking at creating a custom membership provider in ASP.Net MVC3 and am struggling
I'm looking at Doctrine 2 and Symfony documentation for creating a model class.There are

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.