Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

parse error


Guest

Recommended Posts

hi, can some one be kind enough to tell me why im getting this parse error when I try to enter my admin section...here is the error

 

 

Parse error: syntax error, unexpected '<' in /home/herblife/public_html/admin/includes/header.php on line 13....here is the code if it helps

<?php
/*
 $Id: header.php 1785 2008-01-10 15:07:07Z hpdl $

 osCommerce, Open Source E-Commerce Solutions
 [url="http://www.oscommerce.com"]http://www.oscommerce.com[/url]

 Copyright © 2008 osCommerce

 Released under the GNU General Public License
*/

 <head>
<script language="javascript"><!--
function phpOnlinePopupWindow() {
var url = 'http://www.naturalherbs4naturalliving.com/live_support/staff.php';
 window.open(url,'popupWindow','toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=no,res
izable=no,copyhistory=no,width=575,height=375,screenX=150,screenY=150,top=150,le
f
t=150')
}
//--></script>
</head>

<table border="0" width="100%" cellspacing="0" cellpadding="0">
 <tr>
   <td align="left"><?php echo '<a href="' . tep_href_link(FILENAME_DEFAULT, '', 'NONSSL') . '">' . tep_image(DIR_WS_IMAGES . 'oscommerce.png', PROJECT_VERSION) . '</a>'; ?></td>
   <td align="right"><?php echo '<a href="java script:phpOnlinePopupWindow()">' . tep_image(DIR_WS_IMAGES . 'header_livesupport.gif', STORE_NAME . ' Live Support ') . '</a>'; ?></td>
 </tr>
 <tr class="headerBar">
   <td class="headerBarContent">  <?php echo '<a href="' . tep_href_link(FILENAME_DEFAULT, '', 'NONSSL') . '" class="headerLink">' . HEADER_TITLE_ADMINISTRATION . '</a>  |  <a href="' . tep_catalog_href_link() . '" class="headerLink">' . HEADER_TITLE_ONLINE_CATALOG . '</a>  |  <a href="http://www.oscommerce.com" class="headerLink">' . HEADER_TITLE_SUPPORT_SITE . '</a>'; ?></td>
   <td class="headerBarContent" align="right"><?php echo (tep_session_is_registered('admin') ? 'Logged in as: ' . $admin['username']  . ' (<a href="' . tep_href_link(FILENAME_LOGIN, 'action=logoff') . '" class="headerLink">Logoff</a>)' : ''); ?>  </td>
 </tr>
</table>

Link to comment
Share on other sites

hi, can some one be kind enough to tell me why im getting this parse error when I try to enter my admin section...here is the error

 

 

Parse error: syntax error, unexpected '<' in /home/herblife/public_html/admin/includes/header.php on line 13....here is the code if it helps

<?php
/*
 $Id: header.php 1785 2008-01-10 15:07:07Z hpdl $

 osCommerce, Open Source E-Commerce Solutions
 [url="http://www.oscommerce.com"]http://www.oscommerce.com[/url]

 Copyright © 2008 osCommerce

 Released under the GNU General Public License
*/

 <head>
<script language="javascript"><!--
function phpOnlinePopupWindow() {
var url = 'http://www.naturalherbs4naturalliving.com/live_support/staff.php';
 window.open(url,'popupWindow','toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=no,res
izable=no,copyhistory=no,width=575,height=375,screenX=150,screenY=150,top=150,le
f
t=150')
}
//--></script>
</head>

<table border="0" width="100%" cellspacing="0" cellpadding="0">
 <tr>
   <td align="left"><?php echo '<a href="' . tep_href_link(FILENAME_DEFAULT, '', 'NONSSL') . '">' . tep_image(DIR_WS_IMAGES . 'oscommerce.png', PROJECT_VERSION) . '</a>'; ?></td>
   <td align="right"><?php echo '<a href="java script:phpOnlinePopupWindow()">' . tep_image(DIR_WS_IMAGES . 'header_livesupport.gif', STORE_NAME . ' Live Support ') . '</a>'; ?></td>
 </tr>
 <tr class="headerBar">
   <td class="headerBarContent">  <?php echo '<a href="' . tep_href_link(FILENAME_DEFAULT, '', 'NONSSL') . '" class="headerLink">' . HEADER_TITLE_ADMINISTRATION . '</a>  |  <a href="' . tep_catalog_href_link() . '" class="headerLink">' . HEADER_TITLE_ONLINE_CATALOG . '</a>  |  <a href="http://www.oscommerce.com" class="headerLink">' . HEADER_TITLE_SUPPORT_SITE . '</a>'; ?></td>
   <td class="headerBarContent" align="right"><?php echo (tep_session_is_registered('admin') ? 'Logged in as: ' . $admin['username']  . ' (<a href="' . tep_href_link(FILENAME_LOGIN, 'action=logoff') . '" class="headerLink">Logoff</a>)' : ''); ?>  </td>
 </tr>
</table>

 

<?php
/*
$Id: header.php 1785 2008-01-10 15:07:07Z hpdl $

osCommerce, Open Source E-Commerce Solutions
http://www.oscommerce.com

Copyright © 2008 osCommerce

Released under the GNU General Public License
*/

<head>

 

Should be ..

 

<?php
/*
$Id: header.php 1785 2008-01-10 15:07:07Z hpdl $

osCommerce, Open Source E-Commerce Solutions
http://www.oscommerce.com

Copyright © 2008 osCommerce

Released under the GNU General Public License
*/
?>
<head>

Link to comment
Share on other sites

<?php
/*
$Id: header.php 1785 2008-01-10 15:07:07Z hpdl $

osCommerce, Open Source E-Commerce Solutions
http://www.oscommerce.com

Copyright © 2008 osCommerce

Released under the GNU General Public License
*/

<head>

 

Should be ..

 

<?php
/*
$Id: header.php 1785 2008-01-10 15:07:07Z hpdl $

osCommerce, Open Source E-Commerce Solutions
http://www.oscommerce.com

Copyright © 2008 osCommerce

Released under the GNU General Public License
*/
?>
<head>

 

:D Thank You so much :D....... you are a life saver....two thumbs up.gif

Link to comment
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...