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
Stuck on shopping cart tutorial
Old 01-09-2008, 09:12 AM Stuck on shopping cart tutorial
Daman's Avatar
Extreme Talker

Posts: 157
Location: Toronto, CANADA
Trades: 0
I building a simple shopping cart for the first time ever from a tutorial but i am stuck on one thing. I dont know what to do with the following code. Could anyone offer some assistance? Much appreciated.

PHP Code:
// setting up the web root and server root for
// this shopping cart application
$thisFile str_replace('\\''/'__FILE__);
$docRoot $_SERVER['DOCUMENT_ROOT']; 
Daman is offline
Reply With Quote
View Public Profile Visit Daman's homepage!
 
 
Register now for full access!
Old 01-09-2008, 01:18 PM Re: Stuck on shopping cart tutorial
Valiant's Avatar
Super Talker

Posts: 112
Location: England
Trades: 0
If you sent us the tutorial then we would proabbly have helped you by now.
Valiant is offline
Reply With Quote
View Public Profile
 
Old 01-09-2008, 01:50 PM Re: Stuck on shopping cart tutorial
Daman's Avatar
Extreme Talker

Posts: 157
Location: Toronto, CANADA
Trades: 0
Good point. Here it is.

http://www.phpwebcommerce.com/
Daman is offline
Reply With Quote
View Public Profile Visit Daman's homepage!
 
Old 01-09-2008, 03:22 PM Re: Stuck on shopping cart tutorial
Ultra Talker

Posts: 483
Trades: 0
To be perfectly honest, there's nothing you would need to do with that section of code at least... that is to say, you should just be able to leave it.

What's happening that makes you think you need to change it?
__________________

Please login or register to view this content. Registration is FREE
TwistMyArm is offline
Reply With Quote
View Public Profile
 
Old 01-09-2008, 03:51 PM Re: Stuck on shopping cart tutorial
Daman's Avatar
Extreme Talker

Posts: 157
Location: Toronto, CANADA
Trades: 0
That was my assumption that is was pretty straight forward not to have to change to much code.

The problem i am having is an error code that can be viewed on the following link:

http://events.fasken.com/plaincart/index.php

The database is completely built out and I followed all instructions. not sure why its happening. I though it might have been the code about.

Shouldn't there be a in the red text:
PHP Code:
$thisFile str_replace('\\''/'__FILE__); 
Daman is offline
Reply With Quote
View Public Profile Visit Daman's homepage!
 
Old 01-11-2008, 10:42 AM Re: Stuck on shopping cart tutorial
Daman's Avatar
Extreme Talker

Posts: 157
Location: Toronto, CANADA
Trades: 0
If anyone can offer me any assistance on these error messages it would be much appreciated.
Daman is offline
Reply With Quote
View Public Profile Visit Daman's homepage!
 
Old 01-11-2008, 07:42 PM Re: Stuck on shopping cart tutorial
mgraphic's Avatar
Truth Seeker

Latest Blog Post:
JAMISONTUNES
Posts: 2,918
Name: Keith Marshall
Location: Connecticut
Trades: 0
Quote:
This is taken directly from php.net:

$_SERVER is an array containing information such as headers, paths, and script locations. The entries in this array are created by the web server. There is no guarantee that every web server will provide any of these; servers may omit some, or provide others not listed here. That said, a large number of these variables are accounted for in the » CGI 1.1 specification, so you should be able to expect those.
You should be able to write in the path for this varible.

$docRoot = 'C:/path/to/document/root/';
__________________

<mgraphic /> - I don't have a solution but I admire the problem.
mgraphic is offline
Reply With Quote
View Public Profile
 
Old 01-12-2008, 01:06 PM Re: Stuck on shopping cart tutorial
Novice Talker

Posts: 7
Trades: 0
Quote:
Originally Posted by Daman View Post
If anyone can offer me any assistance on these error messages it would be much appreciated.
You know I am very new to Shopping carts etc., but I got the free Zencart working from the "box". Have you checked it out?? http://www.zen-cart.com
Veronika7747 is offline
Reply With Quote
View Public Profile
 
Reply     « Reply to Stuck on shopping cart tutorial
 

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.32105 seconds with 12 queries