This is a discussion on Parse ErroR CANNOT SOLVE! *@*(%!@^*)&^ within the osCommerce 2.2 Modification Help forums, part of the osCommerce 2.2 Forums category; I been reading the boards and realise this parse evil has been around too for many of oscommerce newbies trying ...
| |||||||
| Register | FAQ | Members List | Calendar | Mark Forums Read |
|
#1
| |||
| |||
| 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
| ||||
| ||||
| 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);
}
}
?>
__________________ Michael Sasek osCMax Developer osCMax Templates - Hundreds of premium quality templates. New designs every month! xShop for osCMax - Windows Based osCMax administration. Improved workflow, security, speed and convenience osCMax Hosting - From basic hosting to High Availability, Load Balanced arrays, the most experienced osCMax host. |
| Thread Tools | |
| |
| ||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Parse error: parse error, unexpected T_NEW, expecting ')' | oscnoob | osCMax v1.7 Discussion | 0 | 04-02-2005 02:27 PM |
| New Installation Parse error: parse error, unexpected T_STRI | Anonymous | osCMax v1.7 Installation | 5 | 07-09-2004 06:06 AM |
| Parse Error? | JJH35 | osCommerce 2.2 Installation Help | 1 | 04-06-2004 01:14 PM |
| Parse error: parse error for product_listing.php | midwestwebsites | osCMax v1.7 Discussion | 1 | 09-16-2003 01:21 PM |
| Parse error: parse error, unexpected T_STRING? HELP... | hanool | osCommerce 2.2 Modification Help | 1 | 09-10-2003 10:38 AM |