You are here: Re: Securely serving files « PHP Programming Language « IT news, forums, messages
Re: Securely serving files

Posted by Nicholas Sherlock on 02/13/06 02:16

Richard Levasseur wrote:
> Alternatively, you can use chmod() to change the file attributes to
> allow reading/writing of the file. Might be faster than the ftp
> functions.

AFAICS, chmod() isn't the problem. The problem is that when using
Mkdir() the owner of the created folder isn't the same as the owner of
the script, and PHP's safe mode therefore doesn't allow you to access
the created folder (You can't even call Chmod() on it). Creating it
through FTP solves this problem.

> Apache can be setup to follow, not follow, and change the owner id of
> symlinks. Since you said symlinks are apparently working, I don't
> think it matters which you choose in this case.

Thanks.

Cheers,
Nicholas Sherlock

 

Navigation:

[Reply to this message]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация