variable assignment
Posted: Fri Feb 01, 2008 8:01 pm
Hi,
Could somebody help? I'm new to php... programming in general.
I have a variable assiged as
$upload_dir = $uploads_folder_name . "/" . $logged_user_name;
where
$uploads_folder_name = 'files';
$logged_user_name = global variable that grabs the logged in user_name of the session
but when the user logs in as "John", making $logged_user_name = 'John', the script sees $upload_dir as "files/" only. But when I assign $upload_dir = $uploads_folder_name . "/John", then $upload_dir is "files/John".
Are there situations where the session variable is encoded differently or something? I did an ECHO statement of $logged_user_name and it shows as "John" also.
Please help, I've been doing all different combination to get the $upload_dir variable to be properly assigned.
Thanks in advance.
Could somebody help? I'm new to php... programming in general.
I have a variable assiged as
$upload_dir = $uploads_folder_name . "/" . $logged_user_name;
where
$uploads_folder_name = 'files';
$logged_user_name = global variable that grabs the logged in user_name of the session
but when the user logs in as "John", making $logged_user_name = 'John', the script sees $upload_dir as "files/" only. But when I assign $upload_dir = $uploads_folder_name . "/John", then $upload_dir is "files/John".
Are there situations where the session variable is encoded differently or something? I did an ECHO statement of $logged_user_name and it shows as "John" also.
Please help, I've been doing all different combination to get the $upload_dir variable to be properly assigned.
Thanks in advance.