These are not errors...they are warnings...which is why it opens the file. Check the permissions on this file so the account that your web server uses has read/write permissions. On my server it is 'www'. Once you fix this warning the other two warnings should go away as well. Hope this Helps, Jimmy Brock -----Original Message----- From: Bruno Santos [mailto:brvds@xxxxxxxxxxx] Sent: Tuesday, March 16, 2004 7:25 PM To: php db Subject: File Upload Hello all Can someone tell me why PHP give all this erros, when it really opens the file and displays all it's contents ? Uploading files... File Type: text/plain UP: /tmp/teste.txt UP2: teste.txtFile uploaded successfully *Warning*: fopen(teste.txt): failed to open stream: Permission denied in */usr/local/apache2/htdocs/projecto/examples/upload.php* on line *87* *Warning*: fwrite(): supplied argument is not a valid stream resource in */usr/local/apache2/htdocs/projecto/examples/upload.php* on line *88* *Warning*: fclose(): supplied argument is not a valid stream resource in */usr/local/apache2/htdocs/projecto/examples/upload.php* on line *89* Preview of uploaded file contents: ------------------------------------------------------------------------ This is a test <- File content cheers all Thx in advance -- PHP Database Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php