i'm getting this error msg:
Parse error: parse error, unexpected T_STRING in /home/content/g/3/n/g3nius/html/gallery/eyelash_images/big/upload.php on line 12
my code looks like:
line 12 is:
copy ($_FILES['imagefile']['tmp_name'], "files/".$_FILES['imagefile']['name'])
Parse error: parse error, unexpected T_STRING in /home/content/g/3/n/g3nius/html/gallery/eyelash_images/big/upload.php on line 12
my code looks like:
Code:
<form name="form1" method="post" action="" enctype="multipart/form-data">
<input type="file" name="imagefile">
<br>
<input type="submit" name="Submit" value="Submit">
<?
if(isset( $Submit ))
{
//If the Submitbutton was pressed do:
if ($_FILES['imagefile']['type'] == "image/gif"){
copy ($_FILES['imagefile']['tmp_name'], "files/".$_FILES['imagefile']['name'])
or die ("Could not copy");
echo "";
echo "Name: ".$_FILES['imagefile']['name']."";
echo "Size: ".$_FILES['imagefile']['size']."";
echo "Type: ".$_FILES['imagefile']['type']."";
echo "Copy Done....";
}
else {
echo "<br><br>";
echo "Could Not Copy, Wrong Filetype (".$_FILES['imagefile']['name'].")<br>";
}
} ?> </form>
line 12 is:
copy ($_FILES['imagefile']['tmp_name'], "files/".$_FILES['imagefile']['name'])