Full service web hosting, great prices and support. Starts at $1.99/month!
Results 1 to 2 of 2

Thread: Parse ErroR CANNOT SOLVE! *@*(%!@^*)&^

  1. #1
    humbags
    Guest


    Default Parse ErroR CANNOT SOLVE! *@*(%!@^*)&^



    I been reading the boards and realise this parse evil has been around too for many of oscommerce newbies trying to edit...

    I keep getting parse error while tryign to edit my product_info.php.

    I'm wondering if any of you can help here. I am using dreamweaver MX and i get this parse error...i deleted the line it says with error and made sure theres no line or space there. But still it gives me that error. Then I copied the code to notepad to try too but still it gives mi that error!

    I am trying to modify product_info so to give me a customised look for the layout. I wanted to take away the customers also bought this php so I took out the codes of

    <?php
    if ((USE_CACHE == 'true') && empty($SID)) {
    echo tep_cache_also_purchased(3600);
    } else {
    include(DIR_WS_MODULES . FILENAME_ALSO_PURCHASED_PRODUCTS);
    }
    ?>

    but then it will give me a parse error there.

    Please help and to those who did so successfully edit the codes, what software did you use? And is it theres a certani number of space to maintain or watch before and after the <?php and the ?>

    Im' a newbie to php so any help will be greatly appreciated...thanks
    }

  2. #2
    osCMax Developer


    Parse ErroR CANNOT SOLVE! *@*(%!@^*)&^


    Join Date
    Jul 2002
    Location
    Phoenix, AZ
    Posts
    23,134
    Contribute If you enjoy reading the
    content here, click the below
    image to support our site.
    Click Here To Contribute To Our Site

    Total Contributions For

    michael_s     $ 10.00
    Rep Power
    598


    Default

    Just leave the code in place and comment out the include so it looks like this:

    Code:
    <?php
        if ( (USE_CACHE == 'true') && !defined('SID')) {
          echo tep_cache_also_purchased(3600);
        } else {
          //include(DIR_WS_MODULES . FILENAME_ALSO_PURCHASED_PRODUCTS);
        }
      }
    ?>
    Problem solved

Similar Threads

  1. Parse error: parse error, unexpected T_NEW, expecting ')'
    By oscnoob in forum osCmax v1.7 Discussion
    Replies: 0
    Last Post: 04-02-2005, 02:27 PM
  2. New Installation Parse error: parse error, unexpected T_STRI
    By Anonymous in forum osCMax v1.7 Installation
    Replies: 5
    Last Post: 07-09-2004, 06:06 AM
  3. Parse Error?
    By JJH35 in forum osCommerce 2.2 Installation Help
    Replies: 1
    Last Post: 04-06-2004, 01:14 PM
  4. Parse error: parse error for product_listing.php
    By midwestwebsites in forum osCmax v1.7 Discussion
    Replies: 1
    Last Post: 09-16-2003, 01:21 PM
  5. Parse error: parse error, unexpected T_STRING? HELP...
    By hanool in forum osCommerce 2.2 Modification Help
    Replies: 1
    Last Post: 09-10-2003, 10:38 AM

Bookmarks

Bookmarks

Posting Permissions

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