Easy PHP Calendar - We really take care of your dates!


Go Back   Easy PHP Calendar > General Discussion > General Support

General Support Questions about using the Easy PHP Calendar. (Not installation or customizations)

Closed Thread
 
Thread Tools Search this Thread Display Modes

Making a mobile device friendly version of the page.
Old 11-30-2008, 05:34 PM   #1
zaphod
Calendar User
 
zaphod is offline
Join Date: Sep 2008
Posts: 12
Default 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:

<?php
// 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));
echo $contents;
?>

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......]

Any ideas?

Thanks,

Z
 

Old 11-30-2008, 07:01 PM   #2
zaphod
Calendar User
 
zaphod is offline
Join Date: Sep 2008
Posts: 12
Default

Think I've figured this out - not sure why the above example didn't (doesn't) work but this seems to:

$url = "http://www.mycalendarurl.com/original.php";
ob_start();
include($url);
$return_str = ob_get_contents();
ob_end_clean();

Obviously before outputting I'd do a series of find / replace....
 
Closed Thread

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
How to create an easy printer friendly page with easyphp calendar adigraham General Support 1 07-30-2008 04:42 PM
version checker resulting in blank page Ricola Installation / Upgrade Questions 3 07-18-2007 09:40 AM
Printer Friendly page... bobyne General Support 5 02-12-2006 08:26 AM
Latest version info swimmrguy Installation / Upgrade Questions 2 11-01-2005 06:55 PM
Version 6 Download Page Brian Other Announcements 0 04-01-2005 01:27 PM



All times are GMT -4. The time now is 05:05 PM.


vBulletin skins developed by: eXtremepixels
Powered by vBulletin® Version 3.8.4
Copyright ©2000 - 2013, Jelsoft Enterprises Ltd.
Copyright 2009 NashTech, Inc.

| Home | Register | Today's Posts | Search | New Posts |