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 DB and all, everything is working fine, but only from within the catalog folder. The catalog folder is placed directly inside the 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:
PHP Code:
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:
PHP Code:
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:
Quote:
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 28
|
__________________
THE FORCE is with me at last! All I need now is some TALKUPATION ;)
|