How shall I define a base directory with predefined path variable?
//Path variable
$path = "sub-directory";
If I define the directory in the following way
define('BASE_DIR','/home/user/public_html/directory/$path/');
It returns,
string(8) "BASE_DIR" string(39) "/home/user/public_html/directory/$path/"
But it should return
string(8) "BASE_DIR" string(47) "/home/user/public_html/directory/sub-directory/"
When I echo or dump it.
What's going wrong?