Administrative Add or Remove Listings |
Environment variables:
HOME = $ip = getenv("HOME"); echo $ip; ?>
TMPDIR = $ip = getenv("TMPDIR"); echo $ip; ?>
Uploaded file specifics:
$userfile - The temporary filename in which the uploaded file was stored on the server machine. = echo $userfile; ?>
$userfile_name - The original name of the file on the sender's system. = echo $userfile_name; ?>
$userfile_size - The size of the uploaded file in bytes. = echo $userfile_size; ?>
$userfile_type = echo $userfile_type; ?>
$dirname = "/usr/www/users/ophir/4syth/logan/wren/"; $newfiletemp = $dirname . $userfile_name; $newfile = strtolower($newfiletemp); ?> I am now going to attempt to copy the temporary file to: echo $newfile; ?>
if (!copy($userfile, $newfile)) {
print("failed to copy $file...
\n"); } ?>