Re: repetition of tedious references

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



From: tedd <tedd@xxxxxxxxxxxx>
Olav:

Mine too.

But, Rasmus gave me this:

 $action = isset($_GET['action']) ? $_GET['action'] : null;

Which could be translated to:

$language = isset ($_SERVER["HTTP_ACCEPT_LANGUAGE"]) ? ($_SERVER["HTTP_ACCEPT_LANGUAGE"]) : "*";

I think that might help.

Anyone see a problem with it?

Cheers,

tedd

I see a problem. If it is set and == "", you let it stay "" instead of being assigned "*". Only when it is not "" should it be allowed to stay the same.

_________________________________________________________________
Local listings, incredible imagery, and driving directions - all in one place! http://maps.live.com/?wip=69&FORM=MGAC01

--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


[Index of Archives]     [PHP Home]     [Apache Users]     [PHP on Windows]     [Kernel Newbies]     [PHP Install]     [PHP Classes]     [Pear]     [Postgresql]     [Postgresql PHP]     [PHP on Windows]     [PHP Database Programming]     [PHP SOAP]

  Powered by Linux