|
Re: Определенный chmod в upload.class
|
||||
|---|---|---|---|---|
|
Just popping in
![]()
|
Дурной, совсем дурной...
function copyFile() { $ext = preg_replace("/^.+\.([^.]+)$/sU", "\\1", $this->HTTP_POST_FILES[$this->uploadFieldName]['name']); $func = function_exists(move_uploaded_file) ? move_uploaded_file : copy; chmod ($this->uploadFile, 0666); return $func($this->uploadFile, $this->uploadPath . "/" . $this->destinationFileName.".".strtolower($ext)); }
Posted on: 2003/4/27 22:38
|
|||
|
"И понял, что я заблудился навеки
В слепых переходах пространств и времен, А где-то струятся родимые реки, К которым мне путь навсегда запр |
||||
|
||||

