I have a members area on my website with an upload script.
<?php
if ($img1_name != "") {
@copy("$img1" , "/var/www/html/uploads/")
or die("Couldn't Upload Your File.");
} else {
die("No File Specified");
}
?>
I want to set the upload filename to the user ID
$login_check[1].txt
that way the file for that user would be named "id#" .txt
How can I accomplish this?