Wondering if anyone would help me with virtual file uploader 1.0 ?
I think I'm making it harder than it should be. Can someone tell me how I need to modify the directory path where I want the files to be uploaded to? I want them to go to a directory called images. Can't figure out how to do the data path. My website is www.crookston-community.com. Tried different versions of the directory path with no luck. I was sure to make the directory and file attribs 777.
<?php
if ($img1_name != "") {
@copy("$img1" , "/home/admin/www/fileupload/$img1_name")
or die("Couldn't Upload Your File.");
} else {
die("No File Specified");
}
?>
<HTML>
<HEAD>
<TITLE>File Upload Successful</TITLE>
</HEAD>
<BODY>
<H1>File Upload Successful!</H1>
<P>Successfully Sent: <?php echo "$img1_name"; ?> , a <?php echo "$img1_size"; ?> byte file with the extension type of <?php echo "$img1_type"; ?> </P>
</BODY>
</HTML>
Thanks all