Justtechjobs.com Find a programming school near you






Online Campus Both


php3-list | 199903

Re: [PHP3] creating files with php3 From: Chad Cunningham (ccunning <email protected>)
Date: 03/31/99

Anything PHP does it does as your web server. The web server is a valid user on
the system. This means that php can only read/write files that the webserver has
appropriate permissions too. Anyone who can use php can access any file that the
web server has permissions to.

DATA fix wrote:

> Hi.
>
> I have possible missed something obvious here, but when my
> script tries to create new files on my ISP's server I get
> errors indicating that the script is not allowed to create
> them.
>
> I can get around this temporarily by changing the the access
> rights of the html -directory (the directory where my
> homepage/scripts are) from rwx--x--x to rwxrwxrwx, but that
> is not something I wish not to have permanently.
>
> Seems the scripts are run as 'nobody' or 'wwwadmin' and I
> own the html -directory. I guess that is the problem. Is
> there a safe way around this?
>
> I have also been wondering about this other thing; when I
> create files with php3, they are owned by 'nobody' or what
> ever the server is configured to. So, can other users'
> scripts have the read(/write?) access to them?
>
> -mika v
>
> --
> PHP 3 Mailing List http://www.php.net/
> To unsubscribe send an empty message to php3-unsubscribe <email protected>
> To subscribe to the digest list: php3-digest-subscribe <email protected>
> For help: php3-help <email protected> Archive: http://www.php.net/mailsearch.php3
> List administrator: zeev-list-admin <email protected>

--
PHP 3 Mailing List   http://www.php.net/
To unsubscribe send an empty message to php3-unsubscribe <email protected>
To subscribe to the digest list:  php3-digest-subscribe <email protected>
For help: php3-help <email protected>  Archive:  http://www.php.net/mailsearch.php3
List administrator:  zeev-list-admin <email protected>