Hi,
I am fairly new to PHP, I am using the script below to try to upload a file to my server but get Could not upload error messages.
It look spretty straight forward, any ideas what coul dbe wrong...?
Thanks.
<?php
if ($img1_name != "") {
@copy("$img1" , "/home/admin/ 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>
I am fairly new to PHP, I am using the script below to try to upload a file to my server but get Could not upload error messages.
It look spretty straight forward, any ideas what coul dbe wrong...?
Thanks.
<?php
if ($img1_name != "") {
@copy("$img1" , "/home/admin/ 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>