Jump to content

fopen() security


stopfocus

Recommended Posts

As i understood the usage of fopen() for it to function correctly the Dir you write to has to be  rw  enabled for the php group, so that fopen() can acces the Dir to write to it.

 

When  I try to write to the Dir that has permissions 666 I get the error  "Permission Denied". If I try to write to the Dir and the permissions are set to 777 read/ write/ecexute for every one everything works as intended and fopen() write to the dir normally.

 

My question:

Why does a folder have to be executable for php to write to it using fopen()?

 

(using up to date versions of Lamp on Debian Lenny 64-bit)

 

Link to comment
https://forums.phpfreaks.com/topic/187917-fopen-security/
Share on other sites

  • 2 weeks later...

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.