Re: problema con upload
| From: | Luis Mario | Date: | Thu, 04 Apr 2002 22:35:03 +0000 |
| Subject: | Re: problema con upload | ||
| References: | 1 2 3 | Groups: | php.general.es |
| Request: | Send a blank email to general-es+get-21171@lists.php.net to get a copy of this message | ||
gracias a todos ya lo resolvi
saludos
At 04:23 p.m. 04/04/02 -0600, you wrote:
ya los cheque y tienes de escritura (777) gracias At 06:06 p.m. 04/04/02 -0500, you wrote:Mira los permisos que tiene la carpeta "lafe" El Jue 04 Abr 2002 16:40, escribiste:hola listeros tengo un problema con el upload me marca este error: Warning: Unable to create '/public_html/mundoweb/lafe/imagesQA.txt': Not a directory in /home/alejandro/public_html/mundoweb/lafe/file.php on line 15 el codigo es el siguiente//---------------------------------------------------------------------------------------------------------------------------------------------------------- <?php function handleupload() {$dir= "/public_html/mundoweb/lafe/images"; if (is_uploaded_file($_FILES['userfile']['tmp_name'])) {$filename = $_FILES['userfile']['tmp_name']; print "$filename was uploaded successfuly";$realname = $_FILES['userfile']['name']; print "realname is $realname";print "copying file to uploads dir";copy($_FILES['userfile']['tmp_name'],$dir.$realname); } else { echo "Possible file upload attack:filename".$_FILES['userfile']['name'].".";}} ?> <html><body> <?php if ($act == "upload") {handleupload();} ?> <form ENCTYPE="multipart/form-data" method="POST" action="file.php?act=upload"> File:<INPUT TYPE="FILE" NAME="userfile" SIZE="35"> <input type="hidden" name="MAX_FILE_SIZE" value="1000000"> <input type="submit" value="Upload" name="B1"> Please click only <b>once</b> and wait for confirmation </form> <a href=file.php>clear form</a> </body></html> --------------------------------------------------------------------- Archivo On-line: http://www.phpes.com/via news: news://news.phpes.com/Manual PHP en español: http://www.php.net/manual/es/ Para dar de baja la suscripción, mande un mensaje a: lista-unsubscribe@phpes.com--------------------------------------------------------------------- Archivo On-line: http://www.phpes.com/--------------------------------------------------------------------- Archivo On-line: http://www.phpes.com/via news: news://news.phpes.com/Manual PHP en español: http://www.php.net/manual/es/ Para dar de baja la suscripción, mande un mensaje a: lista-unsubscribe@phpes.comvia news: news://news.phpes.com/Manual PHP en español: http://www.php.net/manual/es/ Para dar de baja la suscripción, mande un mensaje a: lista-unsubscribe@phpes.com