I've made an security on my pages that checks if the surfer comes from the password protected page. I use getenv("HTTP_REFERER") but it uses the whole url: http://localhost/divdev/p_protect.htm not just p_protect.htm
cus I'm planning to upload this I don't wanna change this all the time. how can I make it to check the current subdir instead of the whole URL?
$url=pathinfo(getenv('HTTP_REFERER')); echo $url['basename'];
Gee, I wonder if fn(arg)[index] is valid syntax...?