I am trying to call the $_SESSION
username
variable so that It will show in a URL like
/users/USERNAME/
I know there's a way to do this, but I must be doing it wrong because here's the error I get: Parse error: syntax error,
unexpected T_ENCAPSED_AND_WHITESPACE, expecting T_STRING or
T_VARIABLE or T_NUM_STRING
What am I doing wrong to get this, and how can I fix it?
Here's the code I'm using:
move_uploaded_file( $_FILES['md']['tmp_name'],
"users/'.$_SESSION['username'].".$_FILES['md']['name'] );