|
Posted by davidkruger on 07/27/07 18:11
On Jul 27, 12:00 pm, Hans Fredrik Nordhaug <han...@gmail.com> wrote:
> I'm trying to write to a file in the current directory - no remote
> files. The subject says it all - I can add that both the directory
> and the file is wordwritable. This happens on a (quite good) free
> hoster in Norway which doesn't use safe mode, running PHP 5.1.6 as the
> PHP info below shows ...
>
> Test it at:http://home.no.net/moldevbk/fopen-test/?mode=w(write - fails)http://home.no.net/moldevbk/fopen-test/?mode=a(append - ok)http://home.no.net/moldevbk/fopen-test/p.php- PHP infohttp://home.no.net/moldevbk/fopen-test/fopen-test.phps- source code of test script.
>
> I have searched the web and usenet, but not found this problem
> mentioned before. I do realize that I can work around the problem by
> truncating the file first and then appending to the empty file - but
> that is ugly as ...
>
> Regards, Hans
>
> --
> + It's GNU/Linux, not Linux ->http://www.gnu.org/gnu/linux-and-gnu.html
> + Support the Free Software Foundation ->http://member.fsf.org/
> + Become an Open Directory Project Editor ->http://dmoz.org/
make sure the directory is set to allow group writing with permissions
set to 707. then it shoudl allow it to work.
[Back to original message]
|