Hi, I have this file upload skript here from Kevin's tutorial.
But I don't know in which directory I have to upload the files to. All I know is, that my server is a unix server and on my server it looks like this here : /home/mydomain/www/mydirectory

And this is the script :
include ("common.php");

if ($submit) {

if ("image/pjpeg" == $uploadedfile_type or "image/gif" == $uploadedfile_type) {

if ("image/pjpeg" == $uploadedfile_type )
$extension = ".jpg";
$extension = ".gif";

$filename = "/home/myserver/www/mydirectory" . time() . $REMOTE_HOST . $extension;

if (copy($uploadedfile, $filename)) {
echo(" Ok, file was uploaded");
} else {
echo(" An error has occured");

else {
error ("Please use .gif ore .jpg");
else {
<title>Untitled Document</title>

<body bgcolor="#FFFFFF">
<form method="post" action="<?=$PHP_SELF?>" Enctype="multipart/form-data">
<input type="File" name="uploadedfile">
<input type="submit" name="submit" value="Submit">
<input type="hidden" name="MAX_FILE_SIZE value="1024">

Using this directory for the file upload ( I'm sure this is wrong ) I get the error message :
Unable to create '/home/mydomain/www/mydirectory985121283.gif': Permission denied

What could be wrong here. I got this "permission denied" problem in some other cases to, do I have to change some settings on my server or is there any problem with the skript ( oh sorry, it is 'script', I learned it in this forum some days ago. )
Thanks for your help