i cant get any result from $REMOTE_HOST ... may be its something else, and i cant find the correct one.
anybody know it??
thanks Daarius ...
sorry about this, but what about the referrer?
i want to check, that which page is viewing my php file. so do i use $PHP_REFERRER or something like that? cos this doesnt work either.
thanks again
$REMOTE_HOST is not allways available, try $REMOTE_ADDR. If you want to know the host name, use gethostbyaddr($REMOTE_ADDR)
Referrer is for some strange reason incorrectly written with one R, so use $HTTP_REFERER.
Try using $HTTP_REFERER (very important, it's misspelled and only has one 'r'). Of course your web server has to be able to handle the variables (I know Apache does, what server are you using?)
There's a very handy reference card at http://www.refcards.com/ for Apache that lists all of the CGI variables (I know it's specific to Apache, but most servers I've run into use the same ones).
-- Curtis
thanks, for the tips... 🙂
Daarius ...