Monday, 15 September 2014

php - Parse error: syntax error, unexpected end of file on line 60 -



php - Parse error: syntax error, unexpected end of file on line 60 -

i don't why error: parse error: syntax error, unexpected end of file in c:\xampp\htdocs\sitelinks\top_links.php on line 60

parse error: syntax error, unexpected end of file in c:\xampp\htdocs\sitelinks\top_links.php on line 60

<div id="topbar"> <div id="navigation" class="ddsmoothmenu"> <ul> <li><a href="/index.php" class="main">home</a></li> <?php if (isset($_session['login'])) { ?> <li><a href="/services" class="main">servizi</a> <ul> <li><a href="/services/?p=details" class="sub">profilo</a></li> <li><a href="/services/?p=atcdocs" class="sub">documentazione atc</a></li> <li><a href="/services/?p=pildocs" class="sub">documentazione piloti</a></li> <li><a href="#" class="sub">training</a></li> <li><a href="#" class="sub">membri</a></li> </ul> <? } ?> </li> <?php if (isset($_session['login'])) { ?> <li><a href="#" class="main">members</a> <ul> <li><a href="#" class="sub">put link here</a></li> <li><a href="#" class="sub">put link here</a></li> <li><a href="#" class="sub">put link here</a></li> </ul> <? } ?> </li> <?php if (isset($_session['login'])) { ?> <li><a href="#" class="main">databases</a> <ul> <li><a href="#" class="sub">put link here</a></li> <li><a href="#" class="sub">put link here</a></li> <li><a href="#" class="sub">put link here</a></li> </ul> <? } ?> </li> <?php if (isset($_session['login'])) { ?> <li><a href="#" class="main">divisions</a> <ul> <li><a href="#" class="sub">put link here</a></li> <li><a href="#" class="sub">put link here</a></li> <li><a href="#" class="sub">put link here</a></li> </ul> </li> <? } ?> <?php if (isset($_session['login'])) { ?> <li><a href="#" class="main">airlines</a> <ul> <li><a href="#" class="sub">put link here</a></li> <li><a href="#" class="sub">put link here</a></li> <li><a href="#" class="sub">put link here</a></li> </ul> </li> <? } ?> <li><a href="#" class="main">forum</a></li> </ul> <? if (isset($_session['login'])) { ?> <? } else { ?> <a href="/?p=login" class="login">login</a> <? } ?> </div> </div>

can help me??

thank youuuuu

by replacing every occurrence of <? <?php script parses fine, seems case have short_open_tag set off. can either turn on in php.ini file (you can't utilize ini_set), or switch using total open tag (which i'd recommend allows you, example, utilize <?xml version="1.0" ?> in html files without having echo it.).

php parsing

No comments:

Post a Comment