Someone helped me with a PHP script. In part of the script, he wrote:
Code: Select all
$base_url = '/my_sub-directory/';
$replace_me = str_replace($base_url, '', $_SERVER['PHP_SELF']);But, ultimately I want to put the site in the domain root, so the home page will be in the public_html directory, not a sub-directory. I don't know what to specify for $base_url in that case, because nothing I tried works.
Code: Select all
$base_url = '/';
$replace_me = str_replace($base_url, '', $_SERVER['PHP_SELF']);$base_url = '/';
$base_url = '';
$base_url = ' ';
$base_url = '~';
none of those worked.
What do I enter in $base_url when the site is installed at the domain root immediately in the public_html directory?
.