Hi, I have extra ?> shows up on every page on screen. If I do a view page with browser it is right before <!doctype html public "-//W3C//DTD HTML 4.01 Transitional//EN"> How can I find it in the codes and get rid of it? I don't know which file causes it?
The header is after <body> , not before <!doctype , so I don't think it is the problem. Any more suggestion?
um, header usually contains the doctype and the head statement though it sounds like you are confusing a graphic header with the HTML header. Might want to clarify what it is you are working with here. Is it wordpress, a custom script or some other CMS?
Sorry for not being clear. I am using oscommerce. The extra ?> is shown on every page under /admin. header.php for the /admin part looks ok to me.
<code><?php /* $Id: header.php,v 1.19 2002/04/13 16:11:52 hpdl Exp $ osCommerce, Open Source E-Commerce Solutions http://www.oscommerce.com Copyright (c) 2002 osCommerce Released under the GNU General Public License */ if ($messageStack->size > 0) { echo $messageStack->output(); } ?> <table border="0" width="100%" cellspacing="0" cellpadding="0"> <tr> <td><?php echo tep_image(DIR_WS_IMAGES . 'oscommerce.gif', 'osCommerce', '204', '50'); ?></td> <td align="right"><?php echo '<a href="http://www.oscommerce.com" target="_blank">' . tep_image(DIR_WS_IMAGES . 'header_support.gif', HEADER_TITLE_SUPPORT_SITE, '50', '50') . '</a> <a href="' . tep_catalog_href_link() . '">' . tep_image(DIR_WS_IMAGES . 'header_checkout.gif', HEADER_TITLE_ONLINE_CATALOG, '53', '50') . '</a> <a href="' . tep_href_link(FILENAME_DEFAULT, '', 'NONSSL') . '">' . tep_image(DIR_WS_IMAGES . 'header_administration.gif', HEADER_TITLE_ADMINISTRATION, '50', '50') . '</a>'; ?> </td> </tr> <tr class="headerBar"> <td class="headerBarContent"> <?php echo '<a href="' . tep_href_link(FILENAME_DEFAULT, '', 'NONSSL') . '" class="headerLink">' . HEADER_TITLE_TOP . '</a>'; ?></td> <td class="headerBarContent" align="right"><?php echo '<a href="http://www.oscommerce.com" class="headerLink">' . HEADER_TITLE_SUPPORT_SITE . '</a> | <a href="' . tep_catalog_href_link() . '" class="headerLink">' . HEADER_TITLE_ONLINE_CATALOG . '</a> | <a href="' . tep_href_link(FILENAME_DEFAULT, '', 'NONSSL') . '" class="headerLink">' . HEADER_TITLE_ADMINISTRATION . '</a>'; ?> </td> </tr> </table></code>
That is not the file you should be looking for, find the file where this code is in: <!doctype html public "-//W3C//DTD HTML 4.01 Transitional//EN"> Code (markup):
I found it. Went through many of the include files to find it. Thanks for all the suggestions and help here.