Re: [PHP] set variables based on HTTP_HOST

2005-08-08 Thread Joe Szilagyi
Hi! On 8/8/05, Richard Davey <[EMAIL PROTECTED]> wrote: > Why are you creating lots of arrays and then using in_array to check > them? Just seems a little pointless in this instance as it gives you > no real benefit - comparing a one element array against a variable is > just... well.. comparing

[PHP] set variables based on HTTP_HOST

2005-08-08 Thread Joe Szilagyi
Is this potentially bad, security wise, to do something like this? Can you guys recommend any way to tighten this up a bit or do this sort of thing better/more eloquently? The idea is to use this in the global header of a site that may be invoked through up to 20-30 different third level

[PHP] set multiple variables

2004-10-01 Thread Joe Szilagyi
Hi, I have this working: if ($REMOTE_ADDR == "212.3.54.65") { header("Location: http://www.google.com/search?&q=huzzah";); Redirect browser exit; } But I want to specify multiple IPs. What's the best recommended way for doing that? thanks Joe -- PHP General Mailing

Re: [PHP] (new question on this) http referer

2004-04-08 Thread Joe Szilagyi
Just a follow up on this one--I've seen where consistently that $HTTP_REFERER will only show local referers, but not stuff from other sites/hostnames. This is on mod_php... any workaround for that? Regards, Joe - Original Message - From: "John W. Holmes" <[EMAIL PROTECTED]> To: "php"