fopen() security


Posted on 16th Feb 2014 07:03 pm by admin

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.

Did you know?Explore Trending and Topic pages for more stories like this.
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)
No comments posted yet

Your Answer:

Login to answer
344 Like 9 Dislike
Previous forums Next forums
Other forums

Sessions work for me and not others?
I'm having a bit of bad luck with sessions. In the past they have worked fine for me, but this time

Do something every fifth time?
I'm trying to write a loop, but I want it to do something different after every fifth instance. Like

GIS appliction help
I found some tutorials in the internet to develop a map application I don't want to use google maps

check if value exists
I have googled this for a while and I am getting lots of different results. Is there a standard meth

Need help in log in and log out?
hi there all of u. i have recently created a site for someone. i have placed log in and log out and

Procedural to OOP
John Kleijn said that to avoid writing "crappy code", we should learn OOP and common OO pr

Xml parsing
I need a suggestion about parsing xml with multiply parts like pervious...
i.e. different device

simple php table loop
Hi all,

I've the following code

<?php // Create category options

Form errors in an array
I'm processing a form and putting the errors in an array. empty($errors) doesn't seem to do the tric

TinyMCE / Ajax Postback Problem
Hiya all,

I have a page which loads the TinyMCE editor. On the postback I obviously want to f

Sign up to write
Sign up now if you have flare of writing..
Login   |   Register
Follow Us
Indyaspeak @ Facebook Indyaspeak @ Twitter Indyaspeak @ Pinterest RSS



Play Free Quiz and Win Cash