| | |
Parse error: syntax error, unexpected $end in
Please support our PHP advertiser: PostgreSQL or MySQL? Compare and contrast the two most popular open source databases
![]() |
•
•
Join Date: Dec 2007
Posts: 27
Reputation:
Solved Threads: 0
I install php script.but error.
Parse error: syntax error, unexpected $end in /home/xxx/public_html/xxxx/ADMIN/index.php on line 376
Please be advice.Thanks
-------------------------------------------------------------------------------------------------
<?php
include("login_config.php");
include_once("Utils.php");
if(isset($doExport)||(isset($category)&&$category=="exit")||isset($Export)){
ob_start();
}
if(stristr($_SERVER['HTTP_USER_AGENT'],"MSIE"))
{
$IE=true;
}
else
{
$IE=false;
}
$AC=true;
include("security.php");
$lArray=DataArray("admin_users","username='$AuthUserName'");
if(isset($lng)){
$LANGUAGE=$arrSupportedLanguages[$lng][1];
$LANGUAGE2=$arrSupportedLanguages[$lng][1];
SQLUpdate_SingleValue(
"admin_users",
"username",
"'".$AuthUserName."'",
"language",
$LANGUAGE
);
}
else{
$LANGUAGE=strtolower($lArray["language"]);
$LANGUAGE2=strtolower($lArray["language"]);
}
if(!isset($LANGUAGE)||strlen($LANGUAGE)!=2){
$LANGUAGE="en";
$LANGUAGE2="en";
}
$strJobCategories = "";
if(file_exists('../include/categories_'.strtolower($LANGUAGE2).'.php'))
{
$lines = file('../include/categories_'.strtolower($LANGUAGE2).'.php');
}
else
{
$lines = file('../include/categories_en.php');
}
foreach ($lines as $line_num => $line)
{
if(trim($line) != "")
{
$strJobCategories .= $line;
}
}
include("../include/ui_texts_en.php");
include("texts_".$LANGUAGE.".php");
include("../jobs_config.php");
if(isset($LANGUAGE2)&&strlen($LANGUAGE2)==2)
{
include("config_".$LANGUAGE2.".php");
}
else{
include("config_en.php");
}
$HISTORY="";
$iRTables=0;
$iKEY="AZ8007";
EnsureParams();
if(get_param("action") == "exit")
{
SQLQuery("
INSERT INTO ".$DBprefix."login_log(username,ip,date,action,cookie)
VALUES('".$AuthUserName."','".$_SERVER['REMOTE_ADDR']."','".time()."','logout','')
");
$HISTORY=$USER_EXITED;
setcookie("Auth","",time()-1);
header("Location: login.php");
}
$arrMonths=array("","January","February","March","April","May","June","July","August","September","October","November","December");
if(isset($doExport)){
ExportTable($strTable,str_replace("\\'","'",$strSql),$FileType,$FileName);
exit();
}
if(!isset($category)){
$category="home";
}
$arrPermissions=array("PermissionsArray");
$Permissions=DataTable("admin_users_permissions","");
while($oPermission=mysql_fetch_array($Permissions))
{
array_push($arrPermissions, $oPermission["permission"]);
}
if(!checkForSpecialSymbols($category)){
die("SECURITY VIOLATION DETECTED");
}
$vr1 = ($category."_oLinkTexts");
$vr2 = ($category."_oLinkActions");
$vr3 = ($category."_oLinkDescriptions");
if(!isset($$vr1))
{
die("<script>document.location.href=\"index.php\";</script>");
}
$evLinkTexts = $$vr1;
$evLinkActions = $$vr2;
$evLinkDescriptions = $$vr3;
if(!isset($folder)&&!isset($action)){
$action=$evLinkActions[0];
}
$IPage="";
if(isset($action)){
$IPage=$action;
}
else
if(isset($folder)){
$IPage=$folder;
}
else{
die("ACCESS DENIED");
}
$ICurrentPage="@".$AuthGroup."@".$category."@".$IPage;
if($AuthGroup=="Administrators"){
}
else
if(array_search($ICurrentPage,$arrPermissions,false)){
}
else{
foreach($arrPermissions as $oPermission){
if(strstr($oPermission,("@".$AuthGroup."@".$category))){
$arrOPage=explode("@",$oPermission);
die("<script>document.location.href='index.php?category=".$arrOPage[2]."&action=".$arrOPage[3]."';</script>");
break;
}
}
die("ACCESS DENIED!");
}
$iLastSlogId=SQLInsert("bo_slog",
array("ip","args","uid","date"),
array($_SERVER["REMOTE_ADDR"],serialize($_REQUEST),$AuthUserName,time())
);
if(isset($action)){
$IAction=$action;
}
else{
$IAction=$folder;
}
$DN = "1";
if($lArray["fax"]=="2")
{
$DN = "2";
}
?>
<html>
<head>
<title><?php echo($ProductName);?></title>
<link href="include/new_style2.css" rel="stylesheet" type="text/css">
<script src="include/ContextMenu.js"></script>
</head>
<body oncontextmenu="return false" leftmargin="0" topmargin="0" bgcolor="#ffffff" marginheight="0" marginwidth="0">
<?php
include("include/help_tips.php");
?>
<table align="center" border="0" cellpadding="0" cellspacing="0" width="100%">
<tbody>
<tr>
<td align="center" background="images2/01.png" valign="top"><div align="center">
<table id="Table_01" align="center" border="0" cellpadding="0" cellspacing="0" height="54" width="800">
<tbody>
<tr>
<td colspan="3" height="19" align=center>
<table border="0" width="785" cellspacing="0" bgcolor=#f5f5f5 height=19>
<tr>
<td align=left valign=bottom width=585>
<!--
<?php echo $M_WELCOME;?> <?php echo strtoupper($AuthUserName);?>, <?php echo $M_TODAY_IS;?> <?php echo date("F j, Y, g:i a");?>
-->
</td>
<td align=right valign=bottom width=200>
<?php
if($AuthUserName == "administrator")
{
?>
<a href="../index.php" target=_blank >[open the website]</a>
<?php
if(!isset($ext_val)) die("");
?>
<a href="index.php?category=exit&action=exit" >[<?php echo strtolower($M_LOGOUT);?>]</a>
</td>
</tr>
</table>
</td>
</tr>
<tr >
<td height="34" valign=top align=right><img src="images2/44.png" alt="" height="34" width="17"></td>
<td background="images2/top_table_bg.png"><?php include("menus/main.php"); ?></td>
<td width=23><img src="images2/13.png" alt="" height="34" width="23"></td>
</tr>
<tr>
<td colspan="3" height="20"><img src="images2/14.png" alt="" height="20" width="800"></td>
</tr>
</tbody>
</table>
</td>
</tr>
<tr class="full" bgcolor="white" height="440">
<td align=center valign=top>
<TABLE WIDTH="800" CELLPADDING="0" CELLSPACING="0">
<TR>
<TD valign=top>
<?php include_once("menus/navigation.php");?>
</TD>
</TR>
<tr>
<td align=center>
<img src="images2/contact_header.gif" width="770" height="6" alt="" border="0">
</td>
</tr>
<TR>
<TD align=center WIDTH ="800" BGCOLOR="#FFFFFF" style="text-align:center">
<CENTER>
<br>
<?php
if(!isset($site_pr)) die("");
if(isset($folder)){
include($category."/".$folder."_".$page.".php");
}
else{
include($category."/".$action.".php");
}
?>
</CENTER>
<br>
</TD>
</TR>
</TABLE>
<br><br>
</td>
</tr>
<tr>
<td align="center">
<table class="Footer" border="0" cellpadding="0" cellspacing="0" width=800>
<tbody>
<tr>
<td bgcolor="#e6e6e6" height="29" valign="top" width="5"><img alt="" src="images2/item3b.gif" align="absbottom" width=5 border="0" hspace="0"></td>
<td bgcolor="#e6e6e6" height="29" valign="middle" width="354">
<p>
<b><?php echo $ProductName;?></b> </span>
</p>
</td>
<td bgcolor="#e6e6e6" height="29" valign="center" width="354">
<p class="style6" align="right">
<a href="http://www.netartmedia.net" target=_blank>A product of
<img src="images/LOGO.gif" width="124" height="15" alt="" border="0" style="position:relative;top:3px">
</a>
</p>
</td>
<td bgcolor="#ffffff" height="29" valign="top" width="5">
<p><img alt="" src="images2/item3a1.gif" align="absbottom" border="0" hspace="0"></p>
</td>
</tr>
</tbody>
</table>
<br>
</td>
</tr>
</tbody>
</table>
</body>
</html>
<?php
if(isset($doExport)||(isset($category)&&$category=="exit")||isset($Export)){
ob_end_flush();
}
?>
------------------------------------------------------------------------------------------------
Parse error: syntax error, unexpected $end in /home/xxx/public_html/xxxx/ADMIN/index.php on line 376
Please be advice.Thanks
-------------------------------------------------------------------------------------------------
<?php
include("login_config.php");
include_once("Utils.php");
if(isset($doExport)||(isset($category)&&$category=="exit")||isset($Export)){
ob_start();
}
if(stristr($_SERVER['HTTP_USER_AGENT'],"MSIE"))
{
$IE=true;
}
else
{
$IE=false;
}
$AC=true;
include("security.php");
$lArray=DataArray("admin_users","username='$AuthUserName'");
if(isset($lng)){
$LANGUAGE=$arrSupportedLanguages[$lng][1];
$LANGUAGE2=$arrSupportedLanguages[$lng][1];
SQLUpdate_SingleValue(
"admin_users",
"username",
"'".$AuthUserName."'",
"language",
$LANGUAGE
);
}
else{
$LANGUAGE=strtolower($lArray["language"]);
$LANGUAGE2=strtolower($lArray["language"]);
}
if(!isset($LANGUAGE)||strlen($LANGUAGE)!=2){
$LANGUAGE="en";
$LANGUAGE2="en";
}
$strJobCategories = "";
if(file_exists('../include/categories_'.strtolower($LANGUAGE2).'.php'))
{
$lines = file('../include/categories_'.strtolower($LANGUAGE2).'.php');
}
else
{
$lines = file('../include/categories_en.php');
}
foreach ($lines as $line_num => $line)
{
if(trim($line) != "")
{
$strJobCategories .= $line;
}
}
include("../include/ui_texts_en.php");
include("texts_".$LANGUAGE.".php");
include("../jobs_config.php");
if(isset($LANGUAGE2)&&strlen($LANGUAGE2)==2)
{
include("config_".$LANGUAGE2.".php");
}
else{
include("config_en.php");
}
$HISTORY="";
$iRTables=0;
$iKEY="AZ8007";
EnsureParams();
if(get_param("action") == "exit")
{
SQLQuery("
INSERT INTO ".$DBprefix."login_log(username,ip,date,action,cookie)
VALUES('".$AuthUserName."','".$_SERVER['REMOTE_ADDR']."','".time()."','logout','')
");
$HISTORY=$USER_EXITED;
setcookie("Auth","",time()-1);
header("Location: login.php");
}
$arrMonths=array("","January","February","March","April","May","June","July","August","September","October","November","December");
if(isset($doExport)){
ExportTable($strTable,str_replace("\\'","'",$strSql),$FileType,$FileName);
exit();
}
if(!isset($category)){
$category="home";
}
$arrPermissions=array("PermissionsArray");
$Permissions=DataTable("admin_users_permissions","");
while($oPermission=mysql_fetch_array($Permissions))
{
array_push($arrPermissions, $oPermission["permission"]);
}
if(!checkForSpecialSymbols($category)){
die("SECURITY VIOLATION DETECTED");
}
$vr1 = ($category."_oLinkTexts");
$vr2 = ($category."_oLinkActions");
$vr3 = ($category."_oLinkDescriptions");
if(!isset($$vr1))
{
die("<script>document.location.href=\"index.php\";</script>");
}
$evLinkTexts = $$vr1;
$evLinkActions = $$vr2;
$evLinkDescriptions = $$vr3;
if(!isset($folder)&&!isset($action)){
$action=$evLinkActions[0];
}
$IPage="";
if(isset($action)){
$IPage=$action;
}
else
if(isset($folder)){
$IPage=$folder;
}
else{
die("ACCESS DENIED");
}
$ICurrentPage="@".$AuthGroup."@".$category."@".$IPage;
if($AuthGroup=="Administrators"){
}
else
if(array_search($ICurrentPage,$arrPermissions,false)){
}
else{
foreach($arrPermissions as $oPermission){
if(strstr($oPermission,("@".$AuthGroup."@".$category))){
$arrOPage=explode("@",$oPermission);
die("<script>document.location.href='index.php?category=".$arrOPage[2]."&action=".$arrOPage[3]."';</script>");
break;
}
}
die("ACCESS DENIED!");
}
$iLastSlogId=SQLInsert("bo_slog",
array("ip","args","uid","date"),
array($_SERVER["REMOTE_ADDR"],serialize($_REQUEST),$AuthUserName,time())
);
if(isset($action)){
$IAction=$action;
}
else{
$IAction=$folder;
}
$DN = "1";
if($lArray["fax"]=="2")
{
$DN = "2";
}
?>
<html>
<head>
<title><?php echo($ProductName);?></title>
<link href="include/new_style2.css" rel="stylesheet" type="text/css">
<script src="include/ContextMenu.js"></script>
</head>
<body oncontextmenu="return false" leftmargin="0" topmargin="0" bgcolor="#ffffff" marginheight="0" marginwidth="0">
<?php
include("include/help_tips.php");
?>
<table align="center" border="0" cellpadding="0" cellspacing="0" width="100%">
<tbody>
<tr>
<td align="center" background="images2/01.png" valign="top"><div align="center">
<table id="Table_01" align="center" border="0" cellpadding="0" cellspacing="0" height="54" width="800">
<tbody>
<tr>
<td colspan="3" height="19" align=center>
<table border="0" width="785" cellspacing="0" bgcolor=#f5f5f5 height=19>
<tr>
<td align=left valign=bottom width=585>
<!--
<?php echo $M_WELCOME;?> <?php echo strtoupper($AuthUserName);?>, <?php echo $M_TODAY_IS;?> <?php echo date("F j, Y, g:i a");?>
-->
</td>
<td align=right valign=bottom width=200>
<?php
if($AuthUserName == "administrator")
{
?>
<a href="../index.php" target=_blank >[open the website]</a>
<?php
if(!isset($ext_val)) die("");
?>
<a href="index.php?category=exit&action=exit" >[<?php echo strtolower($M_LOGOUT);?>]</a>
</td>
</tr>
</table>
</td>
</tr>
<tr >
<td height="34" valign=top align=right><img src="images2/44.png" alt="" height="34" width="17"></td>
<td background="images2/top_table_bg.png"><?php include("menus/main.php"); ?></td>
<td width=23><img src="images2/13.png" alt="" height="34" width="23"></td>
</tr>
<tr>
<td colspan="3" height="20"><img src="images2/14.png" alt="" height="20" width="800"></td>
</tr>
</tbody>
</table>
</td>
</tr>
<tr class="full" bgcolor="white" height="440">
<td align=center valign=top>
<TABLE WIDTH="800" CELLPADDING="0" CELLSPACING="0">
<TR>
<TD valign=top>
<?php include_once("menus/navigation.php");?>
</TD>
</TR>
<tr>
<td align=center>
<img src="images2/contact_header.gif" width="770" height="6" alt="" border="0">
</td>
</tr>
<TR>
<TD align=center WIDTH ="800" BGCOLOR="#FFFFFF" style="text-align:center">
<CENTER>
<br>
<?php
if(!isset($site_pr)) die("");
if(isset($folder)){
include($category."/".$folder."_".$page.".php");
}
else{
include($category."/".$action.".php");
}
?>
</CENTER>
<br>
</TD>
</TR>
</TABLE>
<br><br>
</td>
</tr>
<tr>
<td align="center">
<table class="Footer" border="0" cellpadding="0" cellspacing="0" width=800>
<tbody>
<tr>
<td bgcolor="#e6e6e6" height="29" valign="top" width="5"><img alt="" src="images2/item3b.gif" align="absbottom" width=5 border="0" hspace="0"></td>
<td bgcolor="#e6e6e6" height="29" valign="middle" width="354">
<p>
<b><?php echo $ProductName;?></b> </span>
</p>
</td>
<td bgcolor="#e6e6e6" height="29" valign="center" width="354">
<p class="style6" align="right">
<a href="http://www.netartmedia.net" target=_blank>A product of
<img src="images/LOGO.gif" width="124" height="15" alt="" border="0" style="position:relative;top:3px">
</a>
</p>
</td>
<td bgcolor="#ffffff" height="29" valign="top" width="5">
<p><img alt="" src="images2/item3a1.gif" align="absbottom" border="0" hspace="0"></p>
</td>
</tr>
</tbody>
</table>
<br>
</td>
</tr>
</tbody>
</table>
</body>
</html>
<?php
if(isset($doExport)||(isset($category)&&$category=="exit")||isset($Export)){
ob_end_flush();
}
?>
------------------------------------------------------------------------------------------------
First ... use code tags to highlight your code...
[*code]
[*/code]
(without the *)
Also dumping the whole file into your post does not really help... where's line 376... one's going count the lines....
P.S Check this post:
http://www.daniweb.com/forums/thread72874.html
[*code]
[*/code]
(without the *)
Also dumping the whole file into your post does not really help... where's line 376... one's going count the lines....
P.S Check this post:
http://www.daniweb.com/forums/thread72874.html
Last edited by FireNet; Dec 12th, 2007 at 11:49 pm.
php Syntax (Toggle Plain Text)
<?php if($AuthUserName == "administrator") {
You have forgotten to close this loop. And please, next time wrap your code in
PHP Syntax (Toggle Plain Text)
..
Ignorance is definitely not bliss!
*PM asking for help will be ignored*
*PM asking for help will be ignored*
•
•
Join Date: Dec 2007
Posts: 27
Reputation:
Solved Threads: 0
Thanks for your great help.
I have attached code image with line number.please be advice.Thanks
[img=http://img519.imageshack.us/img519/3473/023br9.th.png]
I have attached code image with line number.please be advice.Thanks
[img=http://img519.imageshack.us/img519/3473/023br9.th.png]
•
•
•
•
I install php script.but error.
Parse error: syntax error, unexpected $end in /home/xxx/public_html/xxxx/ADMIN/index.php on line 376
Please be advice.Thanks
-------------------------------------------------------------------------------------------------
<?php
include("login_config.php");
include_once("Utils.php");
if(isset($doExport)||(isset($category)&&$category=="exit")||isset($Export)){
ob_start();
}
if(stristr($_SERVER['HTTP_USER_AGENT'],"MSIE"))
{
$IE=true;
}
else
{
$IE=false;
}
$AC=true;
include("security.php");
$lArray=DataArray("admin_users","username='$AuthUserName'");
if(isset($lng)){
$LANGUAGE=$arrSupportedLanguages[$lng][1];
$LANGUAGE2=$arrSupportedLanguages[$lng][1];
SQLUpdate_SingleValue(
"admin_users",
"username",
"'".$AuthUserName."'",
"language",
$LANGUAGE
);
}
else{
$LANGUAGE=strtolower($lArray["language"]);
$LANGUAGE2=strtolower($lArray["language"]);
}
if(!isset($LANGUAGE)||strlen($LANGUAGE)!=2){
$LANGUAGE="en";
$LANGUAGE2="en";
}
$strJobCategories = "";
if(file_exists('../include/categories_'.strtolower($LANGUAGE2).'.php'))
{
$lines = file('../include/categories_'.strtolower($LANGUAGE2).'.php');
}
else
{
$lines = file('../include/categories_en.php');
}
foreach ($lines as $line_num => $line)
{
if(trim($line) != "")
{
$strJobCategories .= $line;
}
}
include("../include/ui_texts_en.php");
include("texts_".$LANGUAGE.".php");
include("../jobs_config.php");
if(isset($LANGUAGE2)&&strlen($LANGUAGE2)==2)
{
include("config_".$LANGUAGE2.".php");
}
else{
include("config_en.php");
}
$HISTORY="";
$iRTables=0;
$iKEY="AZ8007";
EnsureParams();
if(get_param("action") == "exit")
{
SQLQuery("
INSERT INTO ".$DBprefix."login_log(username,ip,date,action,cookie)
VALUES('".$AuthUserName."','".$_SERVER['REMOTE_ADDR']."','".time()."','logout','')
");
$HISTORY=$USER_EXITED;
setcookie("Auth","",time()-1);
header("Location: login.php");
}
$arrMonths=array("","January","February","March","April","May","June","July","August","September","October","November","December");
if(isset($doExport)){
ExportTable($strTable,str_replace("\\'","'",$strSql),$FileType,$FileName);
exit();
}
if(!isset($category)){
$category="home";
}
$arrPermissions=array("PermissionsArray");
$Permissions=DataTable("admin_users_permissions","");
while($oPermission=mysql_fetch_array($Permissions))
{
array_push($arrPermissions, $oPermission["permission"]);
}
if(!checkForSpecialSymbols($category)){
die("SECURITY VIOLATION DETECTED");
}
$vr1 = ($category."_oLinkTexts");
$vr2 = ($category."_oLinkActions");
$vr3 = ($category."_oLinkDescriptions");
if(!isset($$vr1))
{
die("<script>document.location.href=\"index.php\";</script>");
}
$evLinkTexts = $$vr1;
$evLinkActions = $$vr2;
$evLinkDescriptions = $$vr3;
if(!isset($folder)&&!isset($action)){
$action=$evLinkActions[0];
}
$IPage="";
if(isset($action)){
$IPage=$action;
}
else
if(isset($folder)){
$IPage=$folder;
}
else{
die("ACCESS DENIED");
}
$ICurrentPage="@".$AuthGroup."@".$category."@".$IPage;
if($AuthGroup=="Administrators"){
}
else
if(array_search($ICurrentPage,$arrPermissions,false)){
}
else{
foreach($arrPermissions as $oPermission){
if(strstr($oPermission,("@".$AuthGroup."@".$category))){
$arrOPage=explode("@",$oPermission);
die("<script>document.location.href='index.php?category=".$arrOPage[2]."&action=".$arrOPage[3]."';</script>");
break;
}
}
die("ACCESS DENIED!");
}
$iLastSlogId=SQLInsert("bo_slog",
array("ip","args","uid","date"),
array($_SERVER["REMOTE_ADDR"],serialize($_REQUEST),$AuthUserName,time())
);
if(isset($action)){
$IAction=$action;
}
else{
$IAction=$folder;
}
$DN = "1";
if($lArray["fax"]=="2")
{
$DN = "2";
}
?>
<html>
<head>
<title><?php echo($ProductName);?></title>
<link href="include/new_style2.css" rel="stylesheet" type="text/css">
<script src="include/ContextMenu.js"></script>
</head>
<body oncontextmenu="return false" leftmargin="0" topmargin="0" bgcolor="#ffffff" marginheight="0" marginwidth="0">
<?php
include("include/help_tips.php");
?>
<table align="center" border="0" cellpadding="0" cellspacing="0" width="100%">
<tbody>
<tr>
<td align="center" background="images2/01.png" valign="top"><div align="center">
<table id="Table_01" align="center" border="0" cellpadding="0" cellspacing="0" height="54" width="800">
<tbody>
<tr>
<td colspan="3" height="19" align=center>
<table border="0" width="785" cellspacing="0" bgcolor=#f5f5f5 height=19>
<tr>
<td align=left valign=bottom width=585>
<!--
<?php echo $M_WELCOME;?> <?php echo strtoupper($AuthUserName);?>, <?php echo $M_TODAY_IS;?> <?php echo date("F j, Y, g:i a");?>
-->
</td>
<td align=right valign=bottom width=200>
<?php
if($AuthUserName == "administrator")
{
?>
<a href="../index.php" target=_blank >[open the website]</a>
<?php
if(!isset($ext_val)) die("");
?>
<a href="index.php?category=exit&action=exit" >[<?php echo strtolower($M_LOGOUT);?>]</a>
</td>
</tr>
</table>
</td>
</tr>
<tr >
<td height="34" valign=top align=right><img src="images2/44.png" alt="" height="34" width="17"></td>
<td background="images2/top_table_bg.png"><?php include("menus/main.php"); ?></td>
<td width=23><img src="images2/13.png" alt="" height="34" width="23"></td>
</tr>
<tr>
<td colspan="3" height="20"><img src="images2/14.png" alt="" height="20" width="800"></td>
</tr>
</tbody>
</table>
</td>
</tr>
<tr class="full" bgcolor="white" height="440">
<td align=center valign=top>
<TABLE WIDTH="800" CELLPADDING="0" CELLSPACING="0">
<TR>
<TD valign=top>
<?php include_once("menus/navigation.php");?>
</TD>
</TR>
<tr>
<td align=center>
<img src="images2/contact_header.gif" width="770" height="6" alt="" border="0">
</td>
</tr>
<TR>
<TD align=center WIDTH ="800" BGCOLOR="#FFFFFF" style="text-align:center">
<CENTER>
<br>
<?php
if(!isset($site_pr)) die("");
if(isset($folder)){
include($category."/".$folder."_".$page.".php");
}
else{
include($category."/".$action.".php");
}
?>
</CENTER>
<br>
</TD>
</TR>
</TABLE>
<br><br>
</td>
</tr>
<tr>
<td align="center">
<table class="Footer" border="0" cellpadding="0" cellspacing="0" width=800>
<tbody>
<tr>
<td bgcolor="#e6e6e6" height="29" valign="top" width="5"><img alt="" src="images2/item3b.gif" align="absbottom" width=5 border="0" hspace="0"></td>
<td bgcolor="#e6e6e6" height="29" valign="middle" width="354">
<p>
<b><?php echo $ProductName;?></b> </span>
</p>
</td>
<td bgcolor="#e6e6e6" height="29" valign="center" width="354">
<p class="style6" align="right">
<a href="http://www.netartmedia.net" target=_blank>A product of
<img src="images/LOGO.gif" width="124" height="15" alt="" border="0" style="position:relative;top:3px">
</a>
</p>
</td>
<td bgcolor="#ffffff" height="29" valign="top" width="5">
<p><img alt="" src="images2/item3a1.gif" align="absbottom" border="0" hspace="0"></p>
</td>
</tr>
</tbody>
</table>
<br>
</td>
</tr>
</tbody>
</table>
</body>
</html>
<?php
if(isset($doExport)||(isset($category)&&$category=="exit")||isset($Export)){
ob_end_flush();
}
?>
------------------------------------------------------------------------------------------------
Last edited by mcx76; Dec 13th, 2007 at 11:29 am.
•
•
Join Date: Oct 2008
Posts: 1
Reputation:
Solved Threads: 0
Hi All,
I am new to this community.
I found that this community is pretty lively and hope to find some solution to my problem.
We host a website for which code is in PHP. It has huge number of template files (files with extension ".tpl").
We keep getting errors like Parse error: syntax error, unexpected $end in /nfs/html/templates_c/%%59^599^599F3372%%displayMessages.tpl.php on line 135 (or) Parse error: syntax error, unexpected $end, expecting ',' or ';' in /nfs/html/templates_c/%%D6^D6A^D6AC432C%%entry_view.tpl.php on line 279 frequently.
Note: The template file which causes the error changes every time
When the error occurs, on refreshing (CTRL + F5) the page the error disappears and page loads normally. But this keeps on coming many times in a day and is pretty irritating.
I searched in google and the common solution available is Missing '{' or '}' , use '<?php' instead of '<?'. But this would be feasible to me if I deal with a single or two template files. But I am helpless with this solution as I have huge number of templates.
Some heads up is that in my Php installation the php short tags attribute is set to ON.
Any pointers are greately helpful.
Thanks in advance.
Regards,
Praveen.
I am new to this community.
I found that this community is pretty lively and hope to find some solution to my problem.
We host a website for which code is in PHP. It has huge number of template files (files with extension ".tpl").
We keep getting errors like Parse error: syntax error, unexpected $end in /nfs/html/templates_c/%%59^599^599F3372%%displayMessages.tpl.php on line 135 (or) Parse error: syntax error, unexpected $end, expecting ',' or ';' in /nfs/html/templates_c/%%D6^D6A^D6AC432C%%entry_view.tpl.php on line 279 frequently.
Note: The template file which causes the error changes every time
When the error occurs, on refreshing (CTRL + F5) the page the error disappears and page loads normally. But this keeps on coming many times in a day and is pretty irritating.
I searched in google and the common solution available is Missing '{' or '}' , use '<?php' instead of '<?'. But this would be feasible to me if I deal with a single or two template files. But I am helpless with this solution as I have huge number of templates.
Some heads up is that in my Php installation the php short tags attribute is set to ON.
Any pointers are greately helpful.
Thanks in advance.
Regards,
Praveen.
![]() |
Similar Threads
- Parse error: syntax error, unexpected T_STRING (PHP)
- syntax error, unexpected $end in ndex.php on line 127 (PHP)
- T_STRING error? i cant find it (PHP)
- Unexpected error that doesn't exist (PHP)
- Parse error: syntax error, unexpected T_STRING in c:/.......... (PHP)
- Help Needed Parse error: syntax error (PHP)
- Syntax error,plz help (PHP)
- Warning: mysql_num_rows(): (PHP)
Other Threads in the PHP Forum
- Previous Thread: Multiple upload assigning specific names
- Next Thread: meta tags in php
| Thread Tools | Search this Thread |
301 apache api array autosuggest beginner beneath binary broadband broken button cakephp checkbox class cms code compression countingeverycharactersfromastring crack cron curl database date decode display dynamic echo email error file files folder form forms function functions google href htaccess html httppost image include insert integration ip javascript joomla limit link links login mail match md5 menu mlm multiple mysql mysql_real_escape_string oop paypal pdf php problem protocol query radio random recursion remote script search searchbox server session sessions sms smtp source space sql strip_tags survey syntax system table tutorial undefined update upload url validator variable video virus votedown web window.onbeforeunload=closeme; youtube







