File Upload ?

From: Date: Thu, 16 Nov 2000 21:03:50 +0000
Subject: File Upload ?
Groups: php.general 
Request: Send a blank email to php-general+get-25787@lists.php.net to get a copy of this message
I am getting the following errors: Warning: Unable to create '/usr/local/apache/htdocs/.../template/': Is a directory in /usr/local/apache/htdocs/.../upload.php on line 32 Warning: Unable to move '/tmp/php0ygpfr' to '/usr/local/apache/htdocs/.../template/' in /usr/local/apache/htdocs/.../upload.php on line 32 I am using the following code: <body bgcolor="#FFFFFF"> <font face="Arial,Helvetica,sans-serif" size="2"> <form enctype="multipart/form-data" action="<?print($PHP_SELF);?>" method="POST"> <INPUT TYPE="hidden" name="MAX_FILE_SIZE" value="1000000"> Send this file: <br> <input name="userfile" type="file"> <input type="submit" value="Send File"> </form> <? move_uploaded_file($userfile, "/usr/local/apache/htdocs/.../template/"); ?> </font> </body> </html> PHP 4.03pl1 apache 1.3.14 RH 6.2 directory permissions are wide open for right now. Any ideas? Thanks. mike

« previous php.general (#25787) next »