I haven't use apache_lookup_uri() yet, but I believe it is for getting local
server's uri info.
I think your PHP script is located web document root, right?
Therefore, you get "/" before the string.
If you want to get remote URI info, use HEAD request. (Refer to RFC for details)
--
Yasuo Ohgaki
I am using the apache_lookup_uri function and I am having a problem.
I have PHP4 as an Apache module.
If I give the command:
$link = "http://www.mysite.com/";
$lookup_results = apache_lookup_uri($link);
And I output:
echo $lookup_results->uri;
echo $lookup_results->status;
I get:
/http:/
2 matches
Mail list logo