Hi... my 1st post :p
I have a little problem... i would like to know how to tell PHP to get a URL from the address bar the moment i type it in... i got it working when clicking around the website... but if i just load the browser and type in the URL straight away it don't show me nothing
<?php
$url = getenv('HTTP_REFERER');
echo $url;
exit;
?>
thats wha i got ( it's a little thing am messing around with ) if i type "http://localhost/url_ref.php" it prints out nothing but if i click on the file thru ma website i get "http://localhost/" when i want to see "http://localhost/url_ref.php"
wha i want is... if i type "http://localhost/url_ref.php" i want it to show me "http://localhost/url_ref.php" if i click on the file from "http://localhost/" and the file is "url_ref.php" i want it to show me "http://localhost/url_ref.php"
anyone know how?
Thx's