Jump to content

BASE_DIR or BASE_URL


jonniejoejonson

Recommended Posts

I understand that...

 

$config['BASE_URL']  = 'http://www.myWebsite.com';

$config['BASE_DIR'] =  my root directory.

 

but why would you use oneover the other or is it better to reference relitavely...eg...

 

'../../openThisPage.php';

 

Which is fastest....

 

$config['BASE_URL'].'/openThisPage.php';

$config['BASE_DIR'].'/openThisPage.php';

'../../openThisPage.php';

 

thanks to any responders. J

Link to comment
https://forums.phpfreaks.com/topic/91024-base_dir-or-base_url/
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.