|| php || helping code || how to get base url in custom php?

19Oct

Sometimes while coding in php, relative paths doesn’t work properly where they suppose to be, so for such cases one need an absolute url and for that need to concatenate the base url with the relative url as per requirement. Following code is there to get the base url.