#19648 [Opn->Bgs]: fopen() and current user
ID: 19648
Updated by: sander@php.net
Reported By: raz0@worldonline.dk
-Status: Open
+Status: Bogus
Bug Type: Feature/Change Request
Operating System: GNU/Linux or any Unix variant
PHP Version: 4.2.2
New Comment:
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
Previous Comments:
------------------------------------------------------------------------
[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
Thread (4 messages)