curb
08-22-2006, 07:35 PM
$domain = $_SERVER['HTTP_HOST'];
$path = $_SERVER['SCRIPT_NAME'];
$url = "http://" . $domain . $path;
echo "$url";
I'm trying to call the url without the current filename.
ex: http://localhost/folder/index.php
But I want it to just show the url without the index.php like this:
ex: http://localhost/folder/
$path = $_SERVER['SCRIPT_NAME'];
$url = "http://" . $domain . $path;
echo "$url";
I'm trying to call the url without the current filename.
ex: http://localhost/folder/index.php
But I want it to just show the url without the index.php like this:
ex: http://localhost/folder/