apache_lookup_uri problem

From: Date: Fri, 30 Mar 2001 04:20:31 +0000
Subject: apache_lookup_uri problem
Groups: php.general 
Request: Send a blank email to php-general+get-46224@lists.php.net to get a copy of this message
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://www.mysite.com (that is if the page that has the script is in document root) and a status of: 200 Even if the link is bad I get a status of 200. Why is there a leading "/"? Am I forming the the URI incorrectly and that is causing a prepend to the link? Any help would be great. I have scanned the archives and various script archives with no results. Thanks in advance. Chris

« previous php.general (#46224) next »