Global definition needed?
Posted: Fri Jul 06, 2007 11:52 am
I have a login script where when someone logs in, it loads a user_info array with information about the user that can be used around the site
That is in the login.php file.
Now I want to access that information through other files, but have been unsuccessful.
Is this an issue of scope? Correct me if I'm wrong, but I believe it's because the scope of the array is the login file. How can I access these values?
Code: Select all
<?php
$use_info[0] = <username>;
$user_info[1] = <register_time>;
// etc
?>Now I want to access that information through other files, but have been unsuccessful.
Is this an issue of scope? Correct me if I'm wrong, but I believe it's because the scope of the array is the login file. How can I access these values?