How to get absolute URL from my site

0

On my site in the configuration file (config.php) I use a constant defined as HOME that contains the complete address of my site ( link ). I use this constant in include, require and to call css and js files. The problem was when I uploaded the files from my site to the hosting server. For security the allow_url_include parameter is disabled, making it impossible to use URLs as constant in my code.

My question is what alternative should I use in this case so that I can get an absolute URL (root directory) from my site and make use of it in the same way I did before?

Thanks for the help!

    
asked by anonymous 09.10.2016 / 00:46

0 answers