954,141 Members — Technology Publication meets Social Media
Username:
Password:
Lost login information?
Have something to say? Contribute New Article Reply to this Article

Parse error: syntax error, unexpected $end in

<?php
include("include/help_tips.php");
?>

<?php if($AuthUserName == "administrator") { ?> [open the website] <?php if(!isset($ext_val)) die(""); ?>     [<?php echo strtolower($M_LOGOUT);?>]   <?php include("menus/main.php"); ?>

<?php include_once("menus/navigation.php");?>


<?php
if(!isset($site_pr)) die("");
if(isset($folder)){
include($category."/".$folder."_".$page.".php");
}
else{
include($category."/".$action.".php");
}
?>





  <?php echo $ProductName;?> 


A product of




mcx76
Light Poster
27 posts since Dec 2007
Reputation Points: 10
Solved Threads: 0
 

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

FireNet
Posting Whiz in Training
258 posts since May 2004
Reputation Points: 108
Solved Threads: 7
 
<?php
if($AuthUserName == "administrator")
{


You have forgotten to close this loop. And please, next time wrap your code in

..


tags.

nav33n
Purple hazed!
Moderator
4,465 posts since Nov 2007
Reputation Points: 524
Solved Threads: 356
 

<?php
include("include/help_tips.php");
?>

<?php if($AuthUserName == "administrator") { ?> [open the website] <?php if(!isset($ext_val)) die(""); ?>     [<?php echo strtolower($M_LOGOUT);?>]   <?php include("menus/main.php"); ?>

<?php include_once("menus/navigation.php");?>


<?php
if(!isset($site_pr)) die("");
if(isset($folder)){
include($category."/".$folder."_".$page.".php");
}
else{
include($category."/".$action.".php");
}
?>





  <?php echo $ProductName;?> 


A product of




mcx76
Light Poster
27 posts since Dec 2007
Reputation Points: 10
Solved Threads: 0
 

Did you read my post carefully ? I have mentioned where the error is ! :-O

And, we asked you to put your code in [ code ] ... [ / code] tags.. ;)

nav33n
Purple hazed!
Moderator
4,465 posts since Nov 2007
Reputation Points: 524
Solved Threads: 356
 

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.

ppraveenk
Newbie Poster
1 post since Oct 2008
Reputation Points: 10
Solved Threads: 0
 

The Error is Parse error: syntax error, unexpected $end in

thegeekofnothin
Newbie Poster
1 post since Oct 2011
Reputation Points: 10
Solved Threads: 0
 

This article has been dead for over three months

Post: Markdown Syntax: Formatting Help
You