Justtechjobs.com Find a programming school near you






Online Campus Both


php3-list | 2000051

Re: [PHP3] /etc/passwd does not to be reading From: Colin McKinnon (colin <email protected>)
Date: 05/03/00

At 17:41 02/05/00 +0200, ZioBudda wrote:
>Hi, I want to give to my users the possibility to create dynamic pages
>with php, but I don't want to give to they the possibility to read from
>/etc/ or out-their home directory (public_html). How can I make it?
>
>Tnx in advance...
>
>ciaoz
>
>Ho sentito urla di sudore... che schifo...

In addition to running apache chroot'ed,

from the PHP manual:.....................................................
doc_root string
PHP's "root directory" on the server. Only used if non-empty. If PHP is
configured with safe mode, no files outside this directory are served.

open_basedir string
Limit the files that can be opened by PHP to the specified directory-tree.

safe_mode boolean
Whether to enable PHP's safe mode. Read the Security chapter for more more
information.

.................................................

HTH

Colin

        

-- 
PHP 3 Mailing List <http://www.php.net/>
To unsubscribe, send an empty message to php3-unsubscribe <email protected>
To subscribe to the digest, e-mail: php3-digest-subscribe <email protected>
To search the mailing list archive, go to: http://www.php.net/mailsearch.php3
To contact the list administrators, e-mail: php-list-admin <email protected>