PHP Parse error: syntax error, unexpected $end in

using windows server 2008, iis7, fastcgi, what could this error be

the file line is the last (+1) line of the file
LVL 1
rgb192Asked:
Who is Participating?
 
PranjalShahConnect With a Mentor Commented:
You dont have PHP short tags enabled in your php settings. Either you can enable short tags or start php with <?php
0
 
Loganathan NatarajanLAMP DeveloperCommented:
You are missing on the variable, $ ... just check and put like this

$variable 1
0
 
rgb192Author Commented:
what should I check for

$end
0
Free Tool: ZipGrep

ZipGrep is a utility that can list and search zip (.war, .ear, .jar, etc) archives for text patterns, without the need to extract the archive's contents.

One of a set of tools we're offering as a way to say thank you for being a part of the community.

 
Loganathan NatarajanLAMP DeveloperCommented:
Look at this like this
0
 
PranjalShahCommented:
To use short open tags, it must be enabled in PHP.INI. Search for short_open_tag in PHP.INI, and change the value to On. The line should look line:

short_open_tag = On
0
 
hmarcbowerCommented:
Sometimes that can happen, too, if you have closed your php but haven't closed out something in curly-braces.  i.e.:

<?php
if ($this == $that)
{
   $dosomething;
}
else
  $donothing;
?>
0
 
XzKtoCommented:
You can always try to cut parts of code untill you will no longer get this error (it doesnt matter that it will not work properly). That will help to localize error (you will just need to find syntax error in last cut part).
0
 
hmarcbowerCommented:
Post the code - easiest way for us to figure it out. :)
0
 
rgb192Author Commented:
best solution thanks
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.