Hi
If using php in a cPanel account the only way I can write to a file is to CHMOD as writable to everybody . I would have thought this is a security issue, enabling anyone to write to that file. Can someone please clarify? I have read somwhere that for some reason this is still secure, but I question that.
eg
$fileH = fopen("/home/path/to/file","w");
comes up with
Warning: fopen(/home/path/to/file): failed to open stream: Permission denied in /home/path/to/file on line 2
unless CHMOD xx6 or xx7
Many Thanks
Sky



LinkBack URL
About LinkBacks
Reply With Quote




