RE: File Upload
| From: | Brock Jimmy D Contr DODHSR5 | Date: | Wed, 17 Mar 2004 13:00:18 +0000 |
| Subject: | RE: File Upload | ||
| Groups: | php.db | ||
| Request: | Send a blank email to php-db+get-33477@lists.php.net to get a copy of this message | ||
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@netvisao.pt]
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