[PHP] problem identifying $_SERVER['HTTP_REFERER']

2004-02-05 Thread Pablo Gosse
Hi all. I've got a simple mailer script that I wrote a few years ago that has been acting up over the past week. The problem is with the following check I perform at the very top of the script: if (!stristr($_SERVER['HTTP_REFERER'],unbc.ca)) { die(You can't access this script outside of our

Re: [PHP] problem identifying $_SERVER['HTTP_REFERER']

2004-02-05 Thread Lucas Gonze
First thing to do is figure out whether the problem is with the referrer var or with your code. Try adding a logger to dump all environment vars to a log file, then check it the next time one of these errors comes up. good luck. - Lucas On Thu, 5 Feb 2004, Pablo Gosse wrote: Hi all. I've