Results 1 to 7 of 7

Hybrid View

  1. #1
    Join Date
    Jan 2004
    Posts
    66,443
    Plugin Contributions
    279

    Default Re: Having issue on local wamp set up

    Quote Originally Posted by mdivk View Post
    <? echo $_SESSION['cart']->cou...
    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.

  2. #2
    Join Date
    Feb 2012
    Posts
    1
    Plugin Contributions
    0

    Default Re: Having issue on local wamp set up

    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?

  3. #3
    Join Date
    Jan 2004
    Posts
    66,443
    Plugin Contributions
    279

    Default Re: Having issue on local wamp set up

    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.

 

 

Similar Threads

  1. Trying to set up local copy of live store on WAMP
    By WhitePhantom in forum General Questions
    Replies: 7
    Last Post: 17 May 2016, 03:38 AM
  2. Install on local machine w/wamp
    By ecmauto in forum Installing on a Windows Server
    Replies: 1
    Last Post: 16 Dec 2011, 12:51 AM
  3. Cannot access admin on WAMP on local machine
    By frank18 in forum Basic Configuration
    Replies: 12
    Last Post: 7 Apr 2011, 08:14 PM
  4. Installing on local and cannot access phpmyadmin on wamp
    By RenoB in forum Installing on a Windows Server
    Replies: 1
    Last Post: 11 Mar 2010, 11:31 AM
  5. Wamp wamp wamp - can't get wamp to run
    By mw4kids in forum Installing on a Windows Server
    Replies: 36
    Last Post: 21 May 2009, 03:37 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
disjunctive-egg