extracting the file name from the referrer

From: Date: Fri, 17 Nov 2006 23:22:30 +0000
Subject: extracting the file name from the referrer
Groups: php.general 
Request: Send a blank email to php-general+get-244827@lists.php.net to get a copy of this message
I need to extract just the filename from the referring url, stripping it of the path and any post vars on the end. there's got to be an easier way than this eh? $referrer = trim(strrchr(substr($_SERVER['HTTP_REFERER'],0, strpos($_SERVER['HTTP_REFERER'],"?")), "/"), "/") Thanks! -JP

« previous php.general (#244827) next »