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

Parse error
Old 02-10-2006, 09:14 AM   #1
kpitzer
Calendar User
 
kpitzer is offline
Join Date: Feb 2006
Posts: 2
Default Parse error

The calendar was working fine, then this error showed up:
Parse error: parse error, unexpected T_STRING, expecting ',' or ';' in /home/tyralok/public_html/calendar/calendar.php on line 52

The PHP version is 4.3.11
Here is the code, any help would be greatly appreciated.

<?php
// EasyPHPCalendar
// Version 6
// Copyright 2001-2005 NashTech, Inc.
// http://www.EasyPHPCalendar.com
// SET ERROR REPORTING LEVEL
error_reporting(E_ALL ^ E_NOTICE);
if ($epcGetInit!=1) {
// DETERMINE NAME OF CURRENT FILE
if (!isset($thisFile) || $thisFile=="") {
$thisFile = $_SERVER['SCRIPT_NAME'];
$thisFile = explode("/",trim($thisFile));
$thisFile = $thisFile[count($thisFile)-1];
if (!file_exists($thisFile)) $thisFile = htmlentities($_SERVER['PHP_SELF']);
}
// SERVER (ROOT) PATH TO ESCAL FOLDER
// This address should start and end with a "/" unless this is on a windows server where it will start with a drive letter;
if (!isset($serverPath) || $serverPath!="../" || $getPaths==1) {
$serverPath="/home/tyralok/public_html/calendar/";
}
// URL PATH TO ESCAL FOLDER
// This address should start and end with a "/". *
// It is usually the name of the directory this file is in (Example: "/escal/");
// * If you enter the full URL starting with "http://", this address will not be verified by the calendar script!
$urlPath="/calendar/";
}
// INITSUM
$epcInitSum="b367e525a7e574817c19ad24b7b35607";
if ($getPaths!=1 && $epcGetInit!=1) {
// GET HTML FUNCTIONS
require_once($serverPath."functions/functions.inc.php");
// CURRENT THEME
$currentTheme="default";
// INCLUDE CSS ROUTINE
if ($CSS!="") {
if (!file_exists($serverPath."config.inc.php")) die ("<font color=red>Server Path Error.</font><br />Please run the Setup Manager to correct this problem.<br /><br />");
require_once($serverPath."config.inc.php");
if ($urlPath=="") {
echo "<link href="theme/$currentTheme/esstyle.css" rel="stylesheet" type="text/css"/>";
echo "<link href="theme/categories/categories.css" rel="stylesheet" type="text/css"/>";
}
else {
if (!isset($showTheme) && $_REQUEST['showTheme']!="") $showTheme=$_REQUEST['showTheme'];
if (isset($showTheme)) {
$checkTheme = $serverPath."theme/".$showTheme."/esstyle.css";
if (file_exists($checkTheme)) {
$currentTheme = $showTheme;
}
}
echo "<link href="".$urlPath."theme/$currentTheme/esstyle.css" rel="stylesheet" type="text/css"/>";
echo "<link href="".$urlPath."theme/categories/categories.css" rel="stylesheet" type="text/css"/>";
}
}
if ($PCSS==1) {
echo "<link href="".$urlPath."theme/$currentTheme/popup.css" rel="stylesheet" type="text/css"/>n";
echo "<link href="".$urlPath."theme/$currentTheme/esstyle.css" rel="stylesheet" type="text/css"/>n";
echo "<link href="".$urlPath."theme/categories/categories.css" rel="stylesheet" type="text/css"/>";
}
// INCLUDE OVERLIB ROUTINE
if ($OL==1) {
if (!file_exists($serverPath."config.inc.php")) die ("<font color=red>Server Path Error.</font><br />Please run the Setup Manager to correct this problem.<br /><br />");
require_once($serverPath."config.inc.php");
// DETERMINE FILENAME
$olFileName = "overlib.js";
if (file_exists($serverPath."overLIB/overlib_mini.js")) $olFileName = "overlib_mini.js";
echo "<script type="text/JavaScript">n";
if (isset($ol_width)) echo " var ol_width=$ol_width;n";
if (isset($ol_delay)) echo " var ol_delay=$ol_delay;n";
if (isset($ol_fgcolor)) echo " var ol_fgcolor="#$ol_fgcolor";n";
if (isset($ol_bgcolor)) echo " var ol_bgcolor="#$ol_bgcolor";n";
if (isset($ol_offsetx)) echo " var ol_offsetx=$ol_offsetx;n";
if (isset($ol_offsety)) echo " var ol_offsety=$ol_offsety;n";
if (isset($ol_border)) echo " var ol_border=$ol_border;n";
if ($ol_fixx!=0) echo " var ol_fixx=$ol_fixx;n";
if ($ol_fixy!=0) echo " var ol_fixy=$ol_fixy;n";
if ($ol_sticky!=0 || $showTheme=="system") echo " var ol_sticky=1;n";
if ($ol_anchor==1) echo " var ol_anchor="escOL";";
if ($ol_anchor==1) echo " var ol_anchoralign="ul";";
echo "</script>n";
echo "<div id="overDiv" style="position:absolute; visibility:hidden; z-index:1000;"></div><script type="text/JavaScript" src="".$urlPath."overLIB/".$olFileName.""><!-- overLIB (c) Erik Bosrup --></script>";
if ($ol_anchor==1) echo "<script src="".$urlPath."overLIB/overlib_anchor.js"></script>";
}
// DISPLAY EVENT LIST
if ($LIST==1) {
if ($license=="" || !isset($license) || !isset($gmt) || $gmt=="") {require ($serverPath."config.inc.php");}
require ($serverPath."functions/listings.php");
}
// DISPLAY TEXT ON CALENDAR
if ($TOC==1) {
if (!file_exists($serverPath."config.inc.php")) die ("<font color=red>Server Path Error.</font><br />Please run the Setup Manager to correct this problem.<br /><br />");
if ($license=="" || !isset($license) || !isset($gmt) || $gmt=="") {require ($serverPath."config.inc.php");}
require ($serverPath."functions/tocCalendar.php");
}
// SHOW MULTIPLE CALENDARS
if ($MULTI==1) {
if (!file_exists($serverPath."config.inc.php")) die ("<font color=red>Server Path Error.</font><br />Please run the Setup Manager to correct this problem.<br /><br />");
if ($license=="" || !isset($license) || !isset($gmt) || $gmt=="") {require ($serverPath."config.inc.php");}
require($serverPath."plugins/multiShow.php");
$MULTIX=1;
}
// DISPLAY CALENDAR
if ($CSS=="" && $OL!=1 && $LIST!=1 && $PCSS=="" && $TOC=="" && $MULTIX=="") {
if (!file_exists($serverPath."config.inc.php")) die ("<font color=red>Server Path Error.</font><br />Please run the Setup Manager to correct this problem.<br /><br />");
if ($license=="" || !isset($license) || !isset($gmt) || $gmt=="") {require ($serverPath."config.inc.php");}
require ($serverPath."functions/calendar.php");
}
// UNSET MODE VARIABLES
unset ($CSS,$PCSS,$OL,$LIST,$TOC,$MULTI,$MULTIX);
}
 

Old 02-10-2006, 10:00 AM   #2
Brian
EPC Developer
 
Brian's Avatar
 
Brian is offline
Join Date: Jun 2001
Location: Florida, USA
Posts: 10,878
Default

Re-upload your calendar.php file then log into to the Setup Manager and see if that helps.
__________________
-- Brian

Questions?

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

Old 02-10-2006, 10:44 AM   #3
kpitzer
Calendar User
 
kpitzer is offline
Join Date: Feb 2006
Posts: 2
Default

Hey Brain,
I try want you suggested and here is what I got:

Parse error: parse error, unexpected T_STRING, expecting ',' or ';' in /home/tyralok/public_html/calendar/calendar.php on line 52
 

Old 02-10-2006, 01:07 PM   #4
Brian
EPC Developer
 
Brian's Avatar
 
Brian is offline
Join Date: Jun 2001
Location: Florida, USA
Posts: 10,878
Default

Can you open a support ticket and include the URL to your calendar installation.
__________________
-- Brian

Questions?

Instructions: Version 6 - Version 7 | FAQ | Errors FAQ | Paths FAQ | Forums | Support
| Web Site Hosting
 
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
Parse error: parse error, unexpected T_STRING, kerry General Support 10 01-07-2008 05:01 PM
Parse Error in calendar.php Damocles General Support 6 02-07-2006 07:44 AM
Parse error in /escal/admin/index.php louder General Support 1 11-10-2004 08:18 PM
Parse error gordo General Support 1 06-29-2004 05:45 PM
Parse Error on Demo.PHP after Install HaloFX General Support 17 01-22-2004 01:09 PM



All times are GMT -4. The time now is 04:03 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 |