Jump to content

defined variables (good/bad practice)


Destramic

Recommended Posts

hey guys i used defined variables inside my index.php and these defined varaibles are called and used through the site...is this good or bad?

 

defined varaibles

define('DS', DIRECTORY_SEPARATOR);
define('PARENT_DIRECTORY_PATH', dirname(dirname(__FILE__)) . DS);
define('PUBLIC_DIRECTORY', BASE_URL . DS .'public' . DS);
define('PRIVATE_DIRECTORY', BASE_URL .'private' . DS );

 

thank you

Link to comment
https://forums.phpfreaks.com/topic/245923-defined-variables-goodbad-practice/
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.