php-windows | 2001051
Date: 05/14/01
- Next message: Carlos Andre Marques Moreira: "[PHP-WIN] mssql_connect"
- Previous message: Paul Meagher: "[PHP-WIN] Case issue with Mysql on windows"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Hi,
I would like to know what is wrong with the code below.
The following code will be included on every page with the include
command.
The variable $language does not seem to be registered at all. it should
be registered
again on every page. Why this? On the php.ini register_globals is "off"
and session.auto_start is "0".
Any help would be gratefully appreciated. Thanks and have a nice day,
christian
-------------------------------- code --------------------------------
session_name("Apache");
if (apache_note("Cookie")) {
session_id(apache_note("Cookie"));
}
session_start();
if (session_is_registered("language")) {
$language = ($HTTP_GET_VARS["language"])?
$HTTP_GET_VARS["language"]:
$HTTP_SESSION_VARS["language"];
} else {
session_register("language");
$language = $HTTP_GET_VARS["language"]?
$HTTP_GET_VARS["language"]:
"d";
}
$HTTP_SESSION_VARS["language"] = $language;
-------------------------------- code --------------------------------
-- PHP Windows Mailing List (http://www.php.net/) To unsubscribe, e-mail: php-windows-unsubscribe <email protected> For additional commands, e-mail: php-windows-help <email protected> To contact the list administrators, e-mail: php-list-admin <email protected>
- Next message: Carlos Andre Marques Moreira: "[PHP-WIN] mssql_connect"
- Previous message: Paul Meagher: "[PHP-WIN] Case issue with Mysql on windows"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]

