laurent vignaux Posted March 25, 2011 Share Posted March 25, 2011 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 More sharing options...
Larry Posted March 25, 2011 Share Posted March 25, 2011 Thanks for the nice words on the book. Since your site is not in the root directory, you need to change all the links so they begin with /acorn2/html Link to comment Share on other sites More sharing options...
laurent vignaux Posted March 25, 2011 Author Share Posted March 25, 2011 Thanks Larry for reply. Cordialy Link to comment Share on other sites More sharing options...
Recommended Posts