Hi,
I would like to ask how to do this:
currently im working in my localhost
if I access my localhost the directory in it are:
clientname1
clientname2
now, my problem is
im in localhost/clientname2
how to get the clientname2 only?
$protocol = $_SERVER['HTTPS'] == 'on' ? 'https' : 'http';
$URL= $protocol.'://'.$_SERVER['HTTP_HOST']."/";
this will display http://localhost/
but I want to include clientname2
$URL= $protocol.'://'.$_SERVER['HTTP_HOST'].$_SERVER['REQUEST_URI'];
it will display
http://localhost/clientname2/pages/product.php?page=about
how to display this only http://localhost/clientname2/