Ultragames
08-02-2007, 03:22 AM
I need three parts of information from the HTTP_REFERER.
1) Any sudomains, not including the http:// or a trailing period. This could be mail or even users.johnsmith
2) The domain, not including any folders, files, or trailing / For instance google.com
3) The page, not including any folders, get data, or anchors. For instance contactus.php
This is best done with regex i'm sure, but I am quite horrible at it. Assistance would be lovely. Thank you.
1) Any sudomains, not including the http:// or a trailing period. This could be mail or even users.johnsmith
2) The domain, not including any folders, files, or trailing / For instance google.com
3) The page, not including any folders, get data, or anchors. For instance contactus.php
This is best done with regex i'm sure, but I am quite horrible at it. Assistance would be lovely. Thank you.