Need a little help

From: Date: Mon, 28 Jan 2002 16:02:05 +0000
Subject: Need a little help
Groups: php.general 
Request: Send a blank email to php-general+get-82425@lists.php.net to get a copy of this message
I'm trying to redirect based on referring host and request. I have an .htaccess set up like this: RedirectMatch (.*)\.gif$ http://www.domain.com/_borders/test.php to redirect all requests for .gif's to a php script which then determines the referring host. $url=parse_url($HTTP_REFERER); if ($url[host] == "domain.com") { //this is where I get stuck do something } else {do some thing} how to I return the correct image. I.e. if the referring page has an <img src="mydomain.com/image"> link and I redirect requests for that image to the php script to determine the host how can I now return a different image for display into the page. Make sense? Is it possible? -Brian

« previous php.general (#82425) next »