Date: Mon, 20 Aug 2001 14:03:42 -0400 From: dave@hawk-systems.com (Dave) To: "Beech Rintoul" <akbeech@anchoragerescue.org>, "Mark Hughes" <mark@dvdnews.co.uk> Cc: <freebsd-questions@FreeBSD.ORG> Subject: RE: Apache question Message-ID: <DBEIKNMKGOBGNDHAAKGNCEKEHNAA.dave@hawk-systems.com> In-Reply-To: <20010820173352.ABF37145@nebula.anchoragerescue.org>
next in thread | previous in thread | raw e-mail | index | archive | help
did you enable these variables when compiling PHP? are you runing PHP in safe mode? Dave > > I tried that, but it doesn't work. Am I doing something wrong? >> > >> > <?php >> > if ($test=strstr($HTTP_REFERER,"http://www.alaskadesign.com/")) { >> > header("Location: http://www.anchoragerescue.org/redirect.html"); >> > } >> > ?> >> > <html> >> >> What does happen? That looks syntactically correct....for testing, do a >> "print $HTTP_REFERER" to check the variable is being set and what it is >> being set to - it maybe the case that you have the option to set all >> environment thingies (technical, moi?) into variables is turned off in your >> php.ini (think it may be called track vars, the option, but I could be >> wrong), in which case you need something like >> $HTTP_SERVER_VARS["HTTP_REFERER"] in place of $HTTP_REFERER. >> >> Hope this helps, >> Mark >> >Ok. I tried "print $HTTP_REFERER" and it returns nothing. >Just to test I ran the "Hello World" php test script and it's working ok. >I'm open to suggestions, but it seems I'm on the right track as the php >logger gets that information. To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?DBEIKNMKGOBGNDHAAKGNCEKEHNAA.dave>