[PHP] Checking referrer?

2002-06-14 Thread Leif K-Brooks
I'm trying to make sure the referer is right on certain pages. I know the variable and everything, but it gets annoying to have to check wth www., without www., with urlencode(), and with rawurlencode(). If there an easier way? -- PHP General Mailing List (http://www.php.net/) To

Re: [PHP] Checking referrer?

2002-06-14 Thread Chris Shiflett
This depends on what you mean by right, of course, but remember that the referer (sic) is just a string. You can use any string manupulation functions to help you test your string, such as searching for substrings, matching patterns with regular expressions, etc. If you need more specific