#19648 [Bgs]: fopen() and current user
| From: | raz0 at worldonline dot dk | Date: | Sat, 28 Sep 2002 14:08:28 +0000 |
| Subject: | #19648 [Bgs]: fopen() and current user | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-20621@lists.php.net to get a copy of this message | ||
ID: 19648
User updated by: raz0@worldonline.dk
Reported By: raz0@worldonline.dk
Status: Bogus
Bug Type: Feature/Change Request
Operating System: GNU/Linux or any Unix variant
PHP Version: 4.2.2
New Comment:
I know its not a bug, thats why I put it under:
Feature/Change Request :)
Well, if you can't answer the question, can you tell me
where I can get an answer then? :)
Previous Comments:
------------------------------------------------------------------------
[2002-09-28 09:04:19] sander@php.net
Thank you for taking the time to write to us, but this is not
a bug. Please double-check the documentation available at
http://www.php.net/manual/ and the instructions on how to
report
a bug at http://bugs.php.net/how-to-report.php
------------------------------------------------------------------------
[2002-09-28 08:56:56] raz0@worldonline.dk
fopen() uses the user running PHP to open the selected file.
This causes problems when you e.g. make a filemanager. All
files created with the filemanger will be owned by the www user and
chmod'ed to 644. On the other side, the filemanger
cannot alter files as they are (mostly) owned by the user (e.g. raz0).
This makes it quite hard to make useful filemanger. Other commands like
unlink() and rmdir() don't
bother whether the files are owned by one or another user.
Is there someway you can fix this?
------------------------------------------------------------------------
--
Edit this bug report at http://bugs.php.net/?id=19648&edit=1