I hardly think this has anything to do with your Wamp server .
looks like missing opening php tag <?php
as result php is not being parsed but being written as just a text .
I hardly think this has anything to do with your Wamp server .
looks like missing opening php tag <?php
as result php is not being parsed but being written as just a text .
Thanks. I don't think it is caused by Wamp either.
Could you take a look at the following code which I believe is to generate the header (I retrieve this from tpl_header.php):
PHP Code:<li><?php echo '<a href="' . HTTP_SERVER . DIR_WS_CATALOG . '">'; ?><?php echo HEADER_TITLE_CATALOG; ?></a> | </li>
<li><?php echo '<a href="' . zen_href_link(FILENAME_CONTACT_US) . '">'; ?><?php echo HEADER_TITLE_CONTACT_US; ?></a> | </li>
<?php if ($_SESSION['customer_id']) { ?>
<li><a href="<?php echo zen_href_link(FILENAME_LOGOFF, '', 'SSL'); ?>"><?php echo HEADER_TITLE_LOGOFF; ?></a> | </li>
<li><a href="<?php echo zen_href_link(FILENAME_ACCOUNT, '', 'SSL'); ?>"><?php echo HEADER_TITLE_MY_ACCOUNT; ?></a> | </li>
<?php
} else {
if (STORE_STATUS == '0') {
?>
<li><a href="<?php echo zen_href_link(FILENAME_LOGIN, '', 'SSL'); ?>"><?php echo HEADER_TITLE_LOGIN; ?></a> | </li>
<?php } } ?>
<li><img src="includes/templates/aberdeen_neutral/images/cart.jpg" class="cart-image" alt="the shopping cart" /><a href="<?php echo zen_href_link(FILENAME_SHOPPING_CART, '', 'NONSSL'); ?>"><?php echo HEADER_TITLE_CART_CONTENTS; ?> - <? echo $_SESSION['cart']->count_contents();?> item(s) - <? echo $currencies->format($_SESSION['cart']->show_total());?></a> | </li>
<li><a href="<?php echo zen_href_link(FILENAME_CHECKOUT_SHIPPING, '', 'SSL'); ?>"><?php echo HEADER_TITLE_CHECKOUT; ?></a></li>
<?php if ($_SESSION['cart']->count_contents() != 0) { ?>
<?php }?>
Here is the screenshot, thanks.
The use of "<?" instead of "<?php" is called "short open tags", and apparently your PHP installation is configured to NOT allow use of short-open-tags.
So, either change all the uses of <? to <?php EVERYWHERE or reconfigure your PHP settings (php.ini) to allow short open tags.
.
Zen Cart - putting the dream of business ownership within reach of anyone!
Donate to: DrByte directly or to the Zen Cart team as a whole
Remember: Any code suggestions you see here are merely suggestions. You assume full responsibility for your use of any such suggestions, including any impact ANY alterations you make to your site may have on your PCI compliance.
Furthermore, any advice you see here about PCI matters is merely an opinion, and should not be relied upon as "official". Official PCI information should be obtained from the PCI Security Council directly or from one of their authorized Assessors.
Cool...I had the same issue and this solved the problem....
I thought I read somewhere when I was setting up php to not allow short tags, because all modern code uses the long tags...is that the preferred configuration?
Starting since PHP v5.3.x, which is the current version as of today, prevents the use of short-open-tags by default.
But the upcoming PHP 5.4, which is in release-candidate-testing phase, has allegedly turned the feature back on again by default.
You can see the details here: http://www.php.net/
As far as smart coding practice is concerned, one should generally be in the practice of using the longer tags. That's the most-compatible approach nowadays, and will be the best-practice until PHP 5.3 is no longer used on any servers anywhere ... probably a decade from now LOL
.
Zen Cart - putting the dream of business ownership within reach of anyone!
Donate to: DrByte directly or to the Zen Cart team as a whole
Remember: Any code suggestions you see here are merely suggestions. You assume full responsibility for your use of any such suggestions, including any impact ANY alterations you make to your site may have on your PCI compliance.
Furthermore, any advice you see here about PCI matters is merely an opinion, and should not be relied upon as "official". Official PCI information should be obtained from the PCI Security Council directly or from one of their authorized Assessors.