Re: file permissions for uploaded files

From: Date: Fri, 02 May 2003 11:27:59 +0000
Subject: Re: file permissions for uploaded files
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-146096@lists.php.net to get a copy of this message
On Friday 02 May 2003 19:05, Elmer van Geijn wrote: > I'm using php script to allow people to upload files to a > server. When I look at the uploaded files on the server they > all have different file permissions set, but I want them all > to be the same. Could you show how they are different? Eg show a directory listing of your uploaded files directory. > Can anyone tell me how php decides what permissions > to set on uploaded files, and whether I can force them? I'm > using both copy() and move_uploaded_file() for handling files > on the server. You could try using umask(). -- Jason Wong -> Gremlins Associates -> www.gremlins.biz Open Source Software Systems Integrators * Web Design & Hosting * Internet & Intranet Applications Development * ------------------------------------------ Search the list archives before you post http://marc.theaimsgroup.com/?l=php-general ------------------------------------------ /* I should have been a country-western singer. After all, I'm older than most western countries. -- George Burns */

« previous php.general (#146096) next »