Re: Uploading Files

From: Date: Wed, 25 Feb 2004 00:38:48 +0000
Subject: Re: Uploading Files
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-178796@lists.php.net to get a copy of this message
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?

« previous php.general (#178796) next »