Re: [PHP] php file upload permission query

2005-12-16 Thread Burhan
Angelo Zanetti wrote: thanks, but Im sure there is something that is messing up the file permissions that I can change before the upload, instead of trying to cure the problem by setting the chmod of the file after its uplaoded Check the following things: 1. umask settings on the director

Re: [PHP] php file upload permission query

2005-12-15 Thread Hristo Yankov
The remote PHP machine maybe forces the files to change their permission when uploaded. This would be security measure. And I think that if this is the case, you won't be able to change the permissions. === Hristo Yankov, Developer at Portellus, Inc. ICQ - 1

Re: [PHP] php file upload permission query

2005-12-15 Thread Hristo Yankov
Use chmod() on the uploaded file. === Hristo Yankov, Developer at Portellus, Inc. ICQ - 191445567 Yahoo! - yankov_hristo __ Do You Yahoo!? Tired of spam? Yahoo! Mail has the best spam protection around http

Re: [PHP] php file upload permission query

2005-12-15 Thread Angelo Zanetti
thanks, but Im sure there is something that is messing up the file permissions that I can change before the upload, instead of trying to cure the problem by setting the chmod of the file after its uplaoded Hristo Yankov wrote: Use chmod() on the uploaded file. =

[PHP] php file upload permission query

2005-12-14 Thread Angelo Zanetti
Hi all. I've got a PHP script which does file uploads. the files get uploaded fine but I see that the permission of the files are: 600 IE: Owner read and write. In order for me to use the files, I would have to set the permissions on each file, now for best practise would I set the permissio