[UPHPU] challenge!

District Webmaster webmaster at alpine.k12.ut.us
Fri Apr 16 10:32:48 MDT 2004


Yup -- you get the award for "Fastest Response." I'm not certain I could
think much higher of you, as I have held you in the highest regard for
many years. :)

Dave

>>> "Velda Christensen" <velda at novapages.com> 04/16/04 10:19 AM >>>
I would have no clue how to do that, but can I still win the prize? :)


> -----Original Message-----
> From: District Webmaster [mailto:webmaster at alpine.k12.ut.us]
> Sent: Friday, April 16, 2004 10:16 AM
> To: list at uphpu.org
> Subject: [UPHPU] challenge!
> 
> Here's a quick and fun coding challenge for y'all: I want to determine
> the subnet of the machine that is visiting my web page.
> 
> I needed this for a script I'm running, and I could think of three  or
> four ways to do it - but I bet there's more. Show your creativeness
and
> mad mad php skills!!!!
> 
> Prizes will be awarded for:
> 
> The fastest (execution time)
> The shortest code
> The most convoluted or complicated
> The most backwards compatible
> The fastest to respond
> The most original
> The most anti-Wade :)
> 
> Prizes shall consist of me thinking very highly of you, at least
> momentarily.
> 
> Dave
> 
> P.S. ***SPOILER!!!!***
> Heres is my solution:
> 
> $subnet = implode (".", array_slice ( explode (".",
> $_SERVER["REMOTE_ADDR"]), 0, 3));
> 
> 
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: list-unsubscribe at uphpu.org
> For additional commands, e-mail: list-help at uphpu.org
> 
> 






More information about the UPHPU mailing list