Hi,
I have no troubles at all with what has been discussed so far (putting the files the image folder myslef), but what about if I would like my users to upload their own images.
I have set the "file" type in my form and when they submit I try the following:
><form name="frmRegister" method="POST" action="'.$_SERVER['PHP_SELF'].'" enctype="multipart/form-data">
<input type="file" name="Imagefile" size="20">
<input type="submit" value="Register">
</form>
>if($_FILES['Imagefile']['type'] == "image/gif")
{
echo "submitted";
copy ($_FILES['Imagefile']['tmp_name'], "images/user19.gif"); //also tried "/images/user19.gif" and got same problem
}
I get "failed to open stream: Permission denied"
Is this a coding failure on my part, am I supposed to set permissions before trying to copy it from the temp folder or is this something out of my control?
Thanks,