Guest Posted November 19, 2007 Posted November 19, 2007 I hope this is the right place to ask my question. I’m working on a E-commerce website and I have decided to try osCommerce for this purpose. Right at the beginning I encountered a problem. I am testing on WinXP Pro running WAMP5. After installing the cart and all, everything was working fine, but only from within the catalog folder. The catalog folder is placed directly inside the Document root. That means that the index.html in the Document Root doesn’t seem to be able to call any apps from the catalog folder. That is a big problem because I need to be able to access the apps from my index page. Any ideas on how to do that? An example: Displaying the carts’ content and total if the page is ran from within the catalog folder: require('includes/application_top.php'); echo ' Items: ' . $cart-> count_contents(); echo '<br />Total: ' . $currencies ->format($cart-> show_total()); Same thing with altered path info running from root doesn’t work, but WHY???: require('catalog/includes/application_top.php'); echo ' Items: ' . $cart-> count_contents(); echo '<br />Total: ' . $currencies ->format($cart-> show_total()); This is the error I am getting: Warning: require(includes/configure.php) [function.require]: failed to open stream: No such file or directory in G:\wamp\www\ catalog\includes\application_top.php on line 28 Fatal error: require() [function.require]: Failed opening required 'includes/configure.php' (include_path='.;C:\php5\pear') in G:\wamp\www\ catalog\includes\application_top.php on line 2 8
Recommended Posts
Archived
This topic is now archived and is closed to further replies.