I can't view files uploaded with PHP
| From: | Linux Zero | Date: | Fri, 02 Apr 2004 19:04:28 +0000 |
| Subject: | I can't view files uploaded with PHP | ||
| Groups: | php.general | ||
| Request: | Send a blank email to php-general+get-182169@lists.php.net to get a copy of this message | ||
Hi everybody!
I write some PHP scripts for a system's module that allows the user to upload a file from his
computer to the host. It works fine in a server with Linux Apache MySQL PHP (LAMP)
environment. I based on the examples of this page:
http://www.php.net/manual/en/features.file-upload.php
Las week we transfer the whole system to another server with the same environment, but now the
uploaded files can't be viewed in the browser. That's because the file is uploaded with
640 permissions and can't be opened by the browser with a wwwrun user.
We check in the old server and find that these uploaded files with 644 permissions. I check the
httpd.conf and php.ini files looking for something like a umask option, but I find nothing like
that.
Can anyone tell me what can I do to solve this problem in the new server? We can't return to
the old server anymore!
Thanks a lot for your help!
http://www.latinmail.com - La forma más cómoda de enviar y
recibir tus e-mails