I've written the following code:
session_start();
include ('myfunction.php');
$language = checkLanguage();
In myfunction.php. Here is the function.
<?
function checkLanguage() {
$language = $HTTP_SESSION_VARS['language'];
....
....
}
?>
When I run the script, error comes up. On the other hand, when I write in this way. Everything is fine
session_start();
$language = $HTTP_SESSION_VARS['language'];
What have I done wrong? thanks for help