' . $langs[$_POST['my_lang']] . "\n"; // Remove, so it is not listed two times unset($langs[$_POST['my_lang']]); } // We have recevied a cookie and it is an available language elseif (isset($langs[myphpnet_language()])) { // Add this as first option, selected $options[] = '\n"; // Remove, so it is not listed two times unset($langs[myphpnet_language()]); } // We have no cookie and no form submitted else { // Add this as first option, selected $options[] = "\n"; } // Add all other languages foreach ($langs as $code => $name) { $options[] = '\n"; } // Assemble form from collected data $langpref = "
\n\n\n
"; commonHeader("My PHP.net"); ?>

My PHP.net

This page allows you to customize the PHP.net site to some degree to your own liking. Currently you can only set the language you prefer, thus overriding any other automatic language selection.

These settings will be active on all official PHP.net mirror sites, and are stored using cookies, so you need to have cookies enabled to let your settings work.

Preferred language

If you use a shortcut or search for a function, the language used is determined by checking for the following settings. The list is in priority order, the first is the most important. Normally you don't need to set your preferred language, as your last seen language is always remembered, and is a good estimate on your preferred language most of the time.

$langpref, "Last seen language" => (isset($_COOKIE['LAST_LANG']) ? $_COOKIE['LAST_LANG'] : "None"), "Your Accept-Language browser setting" => (isset($_SERVER['HTTP_ACCEPT_LANGUAGE']) ? $_SERVER['HTTP_ACCEPT_LANGUAGE'] : "None"), "The mirror's default language" => default_language(), "Default" => "en" ); // Write a row for all settings foreach ($langinfo as $lin => $lid) { echo " \n \n"; echo " \n \n"; } ?>
" . $lin . "" . $lid . "

These settings are only overriden in case you have passed a language setting URL parameter or POST data to a page or you are viewing a manual page in a particular language. In these cases, the explicit specification overrides the language selected from the above list.

The language setting is honored when you use an URL shortcut, when you start a function list search on a non-manual page, when you visit the manual download or language selection pages, etc.

Your country

The PHP.net site and mirror sites try to detect your country using the Directi Ip-to-Country Database. This information is used to mark the events in your country specially and to offer close mirror sites if possible on the download page and on the mirror listing page.

" . $COUNTRIES[$COUNTRY] . ""; } else { echo "We were unable to detect your country"; } ?>