My script now reads:

  <?php
$uploadpath = "/home/sites/site176/web/makeit";
if($userfile) {
move_uploaded_file ($_FILES ['userfile']['tmp_name'],
"$uploadpath/$userfile_name");

  echo $userfile_name;
 echo "Successfully Added!<br>\n";
//$username : contains the name of TMP file, $usrfile_name : it's the real
name of file
}
?>
<form enctype="multipart/form-data" action="<?php echo $PHP_SELF ?>"
method="post" name="upload">
File to Upload: <input type=file name=userfile><BR>
<input type=submit value="Upload">
</form>

I now get:

Warning: Unable to create '/home/sites/site176/web/makeit/Ski club logo high
resolution.jpg': Permission denied in
/home/sites/site176/web/admin/renew_snowreport.php on line 102

I am not sure how or where to change the permissions so I can upload into
this directory?

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to