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

Newbie problem getting calendar in web page
Old 05-26-2004, 08:26 PM   #1
Ian Cook
Calendar User
 
Ian Cook is offline
Join Date: May 2004
Posts: 4
Default Newbie problem getting calendar in web page

Hi,
At the risk of sounding like a complete idiot I am totally stumped.
Can anyone please help me

I am using escal version 5.4.

I can successfully run the demo.php file (see http://www.cityviewchurch.com.au/calendar/demo.php) but when I try to include the calendar in a web page the calendar does not show up.

The test web page can be found at http://www.cityviewchurch.com.au/calendar/iandemo.html

Both the HTML and the PHP scripts are in the same directory.

Any help to get me going would be much appreciated.

Thanks in advance

Kind regards
Ian Cook
(Author of Kirby Alarm and Task Scheduler www.kirbyfooty.com)

-----------------------------------------------------------
The html code is as follows..

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<title>Easily Simple Calendar Demo</title>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<?php $CSS=1; require ("showCalendar.php"); ?>
</head>
<body>
<?php $OL=1; require ("showCalendar.php"); ?>
<h1>Testing Calendar</h1>
<table align="center">
<tr><td>
<?php require ("showCalendar.php"); ?>
</td>
<td width="0" align="left" valign="top">
<a name="escOL">&nbsp;</a>
</td>
</tr></table>
<br />
<div align="center">
<?php
$LIST=1;
$DF = "D - M d";
$template="monthly.php";
require ("showCalendar.php");
?>
</div>
</body>
</html>

---------------------------------------------------
The demo php code is ...

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<title>Easily Simple Calendar Demo</title>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<?php $CSS=1; require ("showCalendar.php"); ?>
</head>
<body>
<?php $OL=1; require ("showCalendar.php"); ?>
<table align="center">
<tr><td>
<?php require ("showCalendar.php"); ?>
</td>
<td width="0" align="left" valign="top">
<a name="escOL">&nbsp;</a>
</td>
</tr></table>
<br />
<div align="center">
<?php
$LIST=1;
$DF = "D - M d";
$template="monthly.php";
require ("showCalendar.php");
?>
</div>
</body>
</html>

Last edited by Ian Cook; 05-26-2004 at 08:28 PM.
 

Old 05-26-2004, 08:39 PM   #2
Brian
EPC Developer
 
Brian's Avatar
 
Brian is offline
Join Date: Jun 2001
Location: Florida, USA
Posts: 10,878
Default

Your have this in an HTML file. Generally, servers only parse PHP if the file ends in .PHP. Can you change the extension and try again?
__________________
-- Brian

Questions?

Instructions: Version 6 - Version 7 | FAQ | Errors FAQ | Paths FAQ | Forums | Support
| Web Site Hosting
 

Old 05-26-2004, 08:48 PM   #3
Ian Cook
Calendar User
 
Ian Cook is offline
Join Date: May 2004
Posts: 4
Default

Hi Brian,

Thanks for the quick reply.
Renaming the file to have PHP as the extension will work, but I want to include your fabulous calendar into an existing web page that has htm as the extension.

I was under the impression from the instructions.htm that came with your package, and after having a look at some of the other user sites (eg the cats adoption page) that I could do it.

The question is how??

Ian
 

Old 05-26-2004, 09:14 PM   #4
Brian
EPC Developer
 
Brian's Avatar
 
Brian is offline
Join Date: Jun 2001
Location: Florida, USA
Posts: 10,878
Default

Your server will need to parse HTML files like it does PHP. If it's possible to have your server do this, your web host should know. I would check with them as each server is set up differently and may have different ways to accomplish this.
__________________
-- Brian

Questions?

Instructions: Version 6 - Version 7 | FAQ | Errors FAQ | Paths FAQ | Forums | Support
| Web Site Hosting
 

Old 05-31-2004, 07:00 PM   #5
Ian Cook
Calendar User
 
Ian Cook is offline
Join Date: May 2004
Posts: 4
Default

Hi Brian,
Thank you. I renamed the the web page "calender.html" to "calendar.php", updated my links etc, and all is ok now.


Ian
 
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
Small Calendar is larger within web page islandwood General Support 6 09-28-2006 10:02 AM
Calendar Only shown on home page stmpspaz General Support 4 09-02-2006 06:35 PM
Can't get calendar to show up on page. timmybighands General 8 06-13-2005 10:42 AM
Just installed the Calendar, but get a blank page Rowan Thomas General Support 1 01-21-2005 08:52 AM
two different calendars on same web page ??? Cappiels General Support 3 01-03-2005 08:50 PM



All times are GMT -4. The time now is 12:59 AM.


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 |