Jump to content
Larry Ullman's Book Forums

Base Uri & Base Url


Recommended Posts

Dear Ullman, it is indeed great pleasure for me to take your book Effortless E-Commerec and found it very interesting. As i am new to programming and prevously not have made any website, i am having some troubles here(Although i have just studied your PHP6 and MYSQL6book) .

 

In chapter 3 of Effortless E-Commerece you described.

Define the constants:

 

define ('BASE_URI', '/path/to/Web/parent/folder/');

define ('BASE_URL', 'www.example.com/');

define ('MYSQL', '/path/to/mysql.inc.php');

 

i am unale to understand define BASE URI and MYSQL. I worte it as

 

define ('BASE_URI', 'C:\wamp\www\ecommerce1\html'); html is web root directory.

define ('BASE_URL', 'www.google.com');

define ('MYSQL', 'C:\wamp\www\ecommerce1'); this is where my mysqli.inc.php resides.

 

It is not working and giving me error. Kindly resolve this problem

Regards

Link to comment
Share on other sites

Hello Shakey

 

There is an in depth discussion on this topid already. Terry amongst others provided lots of useful information. So you can search the forum for 'base uri' and I'm sure you'll find it.

 

However to help you know, there is no way your base-url is www.google.com. I don't use Wamp, but perhaps your base-url will be more like 'C:\wamp\www\ecommerce1\'

 

Let me know how you get on. But look into the topic alreasy on here ;)

  • Upvote 1
Link to comment
Share on other sites

 Share

×
×
  • Create New...