>> If you are running with register_globals set to On, you can ignore the >> first problem, but certainly cannot ignore the second. If you are >> running with register_globals set to Off, after session_start(); put >> the following line: >> >> $username = $_SESSION('username'); >> >> And try again. > > Register_Globals was set to On. I set it to Off.
You didn't need to change it, it should work just fine with it On. > > I changed the code to: > > require_once('../../src/global.php'); > > session_start(); > $username = $_SESSION('username'); > > I now get this: > > Fatal error: Call to undefined function: array() in > /usr/share/squirrelmail/plugins/ > abook_import_export/address_book_import.php > on line 20 Erm... curious... what version of PHP are you really using? array() is a type not a function. -- Jonathan Angliss ([EMAIL PROTECTED]) ------------------------------------------------------- This sf.net email is sponsored by:ThinkGeek Welcome to geek heaven. http://thinkgeek.com/sf -- squirrelmail-users mailing list List Address: [EMAIL PROTECTED] List Archives: http://sourceforge.net/mailarchive/forum.php?forum_id=2995 List Info: https://lists.sourceforge.net/lists/listinfo/squirrelmail-users