Results 1 to 4 of 4
  1. #1

    Default PHP code showing on screen

    Good evening to all ..

    can someone explain to me how to fix the error in here?

    www.utensileriaferramenta.it

    CentOS Server
    with Apache 2
    PHP 5.3.14 fast/cgi

    Best Regards

  2. #2
    Join Date
    Jan 2004
    Posts
    66,444
    Plugin Contributions
    279

    Default Re: PHP code showing on screen

    Your template has bad PHP code in it. Did you get it from Template Monster?

    Code:
                                <div class="currencies">
                                    <!-- ========== CURRENCIES ========= -->
                                    <form name="currencies" action="http://utensileriaferramenta.it/index.php?main_page=index" method="get">                                    <div>
                                            Valute: &nbsp;
                                    
                                            <?
                                                if (isset($currencies) && is_object($currencies)) {
                                            
                                                  reset($currencies->currencies);
                                                  $currencies_array = array();
                                                  while (list($key, $value) = each($currencies->currencies)) {
                                                    $currencies_array[] = array('id' => $key, 'text' => $value['title']);
                                                  }
                                            
                                                  $hidden_get_variables = '';
                                                  reset($_GET);
                                                  while (list($key, $value) = each($_GET)) {
                                                    if ( ($key != 'currency') && ($key != zen_session_name()) && ($key != 'x') && ($key != 'y') ) {
                                                      $hidden_get_variables .= zen_draw_hidden_field($key, $value);
                                                    }
                                                  }
                                                }
                                            ?>
                                            <select name="currency" class="select" onchange="this.form.submit();">
    </select>
    <input type="hidden" name="zenid" value="ak9bekb4jk8lsgcfuoq3kko2f0" />                                    </div>
                                    </form>
                                <!-- ====================================== -->
                                </div>
    At the very least, your server doesn't recognize a "<?" tag, and requires it to use "<?php" instead.

    Any other customizations you make to your site will also require the proper use of full <?php tags instead of the short <? tag.
    .

    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.

  3. #3

    Default Re: PHP code showing on screen

    Yes i have purchase from templatemonster.. Is possibile to solve or is necessary to rewrite template?

    Thank you

  4. #4
    Join Date
    Jan 2004
    Posts
    66,444
    Plugin Contributions
    279

    Default Re: PHP code showing on screen

    I posted the solution in my last post.
    .

    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. v139h PHP code showing on screen after moving to new server
    By 4jDesigns in forum Installing on a Linux/Unix Server
    Replies: 7
    Last Post: 12 Jun 2012, 11:31 AM
  2. Contact Us page showing PHP code
    By David Canham in forum Installing on a Linux/Unix Server
    Replies: 4
    Last Post: 28 Feb 2010, 05:18 AM
  3. PHP Code Showing in Form Notification Email
    By bsteinagel in forum General Questions
    Replies: 2
    Last Post: 3 Sep 2008, 01:35 AM
  4. php code showing instead of text
    By kezan98 in forum Templates, Stylesheets, Page Layout
    Replies: 2
    Last Post: 21 Jan 2008, 06:58 PM
  5. Weird Code at top of every screen..
    By Nlussi219 in forum General Questions
    Replies: 20
    Last Post: 13 Jul 2007, 04:50 PM

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