Jump to content
Larry Ullman's Book Forums

Coffe - Navigation File


Recommended Posts

Hello,

 

The book is too clever.

I began php with david Power easy web in php. It will be fine but with yours book Larry it's great.

 

So, my problem is with the config file because i work with sub folder

 

http://localhost:8888/acom2/html/ ->the home.php is render.

 

http://localhost:8888/acom2/html/shop.php -> shop

 

If i get back home it's impossible, the browser redirect to:

 

http://localhost:8888/index.php

 

But with files /products/ & /images/ i must "bricoler" in the config, see next:

 

//
//base site racineMachine
define ('BASE_URI', '/Applications/MAMP/htdocs/acom2/html/');
//base site browser
define ('BASE_URL', 'http://localhost:8888/acom2/html/');
define ('VIRTUAL_LOCATION', '/Applications/MAMP/htdocs/acom2/');

define ('MYSQL', VIRTUAL_LOCATION .'/mysql.inc.php');
define ('IMG', BASE_URL . 'images/');
define ('PRODUCT', BASE_URL . 'products/');

 

 

Thanks to you for a soluce or an advice?

 

Cordialy

Link to comment
Share on other sites

 Share

×
×
  • Create New...