Making a mobile device friendly version of the page.
I'm basically trying to create a mobile version of the main page without having to re-write the whole thing myself by reading the main index.php file into a php script, doing some find / replace and outputting a clean / small version of it suitable for mobile phones etc that don't display the calendar and just have the basic events in a list.
Here's the code I'm trying:
// get contents of a file into a string
$filename = "original.php"; #original.php is a copy of index.php
$handle = fopen($filename, "r");
$contents = fread($handle, filesize($filename));
It should work - but I get the a not setup properly error...
[Thank you for using the Easy PHP Calendar!
Please run the Setup Manager
to configure the Easy PHP Calendar script......]