Current status. I have to set 606 for my foobaa.txt.
I wrote a php code, that read and write foobaa.txt,
and I want to make the permission of the foobaa.txt as 600.
But when I tested 600, the PHP code can not read and write foobaa.txt.
so I changed to 606 the foobaa.txt, then my PHP code can read and write the foobaa.txt.
this is problom, because
when someone put
ttp://blabla.foobaa.com/foobaa.txt
directly, then he can see the contents of the foobaa.txt.
This is security hole.
so I want to make 600 for the permission of the foobaa.txt, but if I do so, then the php code can not read and write foobaa.txt.
I think the admin can modify some apatch settings for we can set the txt file's permission as 600.
or do I have to do some other things?
like .htaccess or something.