From owner-freebsd-questions Mon Aug 20 11: 6:33 2001 Delivered-To: freebsd-questions@freebsd.org Received: from hawk-systems.com (hawk-systems.com [161.58.152.235]) by hub.freebsd.org (Postfix) with ESMTP id D3EEF37B413 for ; Mon, 20 Aug 2001 11:06:25 -0700 (PDT) (envelope-from dave@hawk-systems.com) Received: from WS1 (ws1.nexusinternetsolutions.net [204.50.158.15]) by hawk-systems.com (8.11.2) id f7KI6Hk98379; Mon, 20 Aug 2001 12:06:17 -0600 (MDT) From: dave@hawk-systems.com (Dave) To: "Beech Rintoul" , "Mark Hughes" Cc: Subject: RE: Apache question Date: Mon, 20 Aug 2001 14:03:42 -0400 Message-ID: MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit X-Priority: 3 (Normal) X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook IMO, Build 9.0.2416 (9.0.2911.0) In-Reply-To: <20010820173352.ABF37145@nebula.anchoragerescue.org> Importance: Normal X-MimeOLE: Produced By Microsoft MimeOLE V5.50.4133.2400 Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG 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? >> > >> > > > if ($test=strstr($HTTP_REFERER,"http://www.alaskadesign.com/")) { >> > header("Location: http://www.anchoragerescue.org/redirect.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