|It doesn't work for me either...|
but this does:
$ref = $_SERVER['HTTP_REFERER'];
|Great...Fully Working for Me.|
Great help... Since long time I was looking for this. You are great...
|This is very bad advise,|
This code will only work when the php.ini setting register_globals is set to on. Having register globals set to on is a security risk and is normally set to off on modern hosting platforms. The use of the error suppression operator '@' is also a concern. You should use somthing like $ref = (isset($_SERVER['HTTP_REFERER'])) ? $_SERVER['HTTP_REFERER'] : '';
The outer parentheses wrapping "isset" aren't necessary, are they?
|$_SERVER['HTTP_REFERER'] is working well|
But, how get refereer's page title?
|Don't take it that these variables are always "there". Use isset to avoid a PHP notice which (when many) can slow site performance down. |
|is there a way to format the output? sorry i have to type out the slashes cause the post thinks i am putting a link in the post... |
anyhow $_SERVER['HTTP_REFERER']; gives output with the h t t p:slashslash/sitethatreferred.com can you format it to be without the h t t p: and just be sitethatreferred.com only? Does anyone know how to format the output? Thanks!
|yes..working.........superb site for php learners...:) nice one|
just use $ref = substr($ref, 7);
|Sir,i want a function when user come into my site using any REFERER a mail will be send at to my email :)note only for REFERER not for all user|
|is it possible to get e-mail address when a link (to my server) in an e-mail clicked by php code?|
|If the link contains any tracking code or email address then we can get the email address. This is what spam email links does. Even images src address submit a tracking code which says that the email address is valid one. |