Tycoon Talk
Become a Big fish!
The number 1 forum for online business!
Post topics, ask questions, share your knowledge.
Tycoon Talk is part of Freelancer.com - find skilled workers online at a fraction of the cost.

PHP Forum


You are currently viewing our PHP Forum as a guest. Please register to participate.
Login



Freelance Jobs

Reply
Old 11-18-2007, 07:38 PM osCommerce on WAMP5
frofi's Avatar
Extreme Talker

Posts: 236
Location: London
Trades: 0
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 ;)
frofi is offline
Reply With Quote
View Public Profile
 
 
Register now for full access!
Old 11-18-2007, 07:44 PM Re: osCommerce on WAMP5
Novice Talker

Posts: 13
Trades: 0
From what I can see there is a space before the C in catalog.

From the code you posted it's not apparent if the error is in your config file or elseware.
__________________

Please login or register to view this content. Registration is FREE
- Find your Stuff!

Please login or register to view this content. Registration is FREE
- Merchant Accounts for Business

Please login or register to view this content. Registration is FREE
- ECommerce Solutions
ericsante is offline
Reply With Quote
View Public Profile
 
Old 11-18-2007, 08:26 PM Re: osCommerce on WAMP5
frofi's Avatar
Extreme Talker

Posts: 236
Location: London
Trades: 0
Quote:
Originally Posted by ericsante View Post
From what I can see there is a space before the C in catalog.
I hope the thing about the space between c and whatever is a joke. I am asking for help exactly because it isn’t apparent what the problem is. Not to me anyway. I believe only someone who knows osCommerce or WAMP5 can help me.
__________________
THE FORCE is with me at last! All I need now is some TALKUPATION ;)
frofi is offline
Reply With Quote
View Public Profile
 
Old 11-18-2007, 08:32 PM Re: osCommerce on WAMP5
Novice Talker

Posts: 13
Trades: 0
well based on the limited information you posted the problem is with your file path.
__________________

Please login or register to view this content. Registration is FREE
- Find your Stuff!

Please login or register to view this content. Registration is FREE
- Merchant Accounts for Business

Please login or register to view this content. Registration is FREE
- ECommerce Solutions
ericsante is offline
Reply With Quote
View Public Profile
 
Old 11-19-2007, 10:20 AM Re: osCommerce on WAMP5
frofi's Avatar
Extreme Talker

Posts: 236
Location: London
Trades: 0
Problem solved!
__________________
THE FORCE is with me at last! All I need now is some TALKUPATION ;)
frofi is offline
Reply With Quote
View Public Profile
 
Reply     « Reply to osCommerce on WAMP5
 

Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off





   
RSS Feed  Feeds: RSS   JS   XML
RSS Feed  Feeds for this forum: RSS   JS   XML



Page generated in 0.64812 seconds with 12 queries