export to ical/ics data.php missing

Hello,

I am currently working with dhtmlxscheduler and as far as I have understood this I can export data directly into an ics file without a database.

Here is the line I need to insert:
scheduler.load(“data.php”,“ical”);

Now my question, where can I find the data.php? In the files I have downloaded I can’t find it.

It would be nice if you could provide me with this file. Thanks.

scheduler.load(“data.php”,“ical”);

This is command for data loading, and you can use it without any php, just like

scheduler.load(“some.ical”,“ical”);

Sample code for export to ical is attached.
ical_mirror.zip (1.31 KB)

Thanks very much for the quick reply. Sorry to ask, I am a beginner, but where can I find the
download_ical.php from this function:

function download() {
var form = document.forms[0];
form.action = “./data/ical_download.php”;
form.elements.data.value = scheduler.toXML();
form.submit();
}

I am confused. Thanks for you help.

It’s me again. I tried everything now. The scheduler doesn’t write any entries to the ics file. The html file also writes to mysql. For now I would like to have both.

I have attached the .html file. Can anyone look over it please? I really need this to get to work.

Thanks again.
05_loading_mysql.html.zip (1.18 KB)

Hello,

scheduler.load(["php/events.php","/ics/schedule.ics"]);

No, scheduler.load is for loading data, not saving or exporting or anything. If you are loading your events from php/events.php - you should leave it this way. If you are really loading from both sources - they should be in separate load commands and the second one should specify that we are loading ical.

Now let’s check the code further:

var form = document.forms[0]; form.elements.data.value = scheduler.toICal(); form.submit();
That means - then you click on the ‘Save’ button current information will be exported as ical, that string assigned to form and form submitted.
Form submits to the “…/04_export/php/ical_writer.php” file where you can work with exported data and save it to a file, for example.

Kind regards,
Ilya

Thanks very much.

But I need that it saves it automatically without Button. Can I do this somehow?