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

parse error
Parse error: syntax error, unexpected '[', expecting ')' in /Users/admin/Sites/phptest/array.php on

preg_match logical error
Code: <?php
$s = file_get_contents("page.html");
preg_match('/<div cla

Need help to modify php ELSE code
I'm trying to find a way to have the php code display a message if there is no inventory listed in t

code help - pagination
Hi all, I have this code, basically a user logs into my site and they get this page.

The pro

ALV grid with 2 headers
Hi Gurus,

I need to display ALV GRID as below.

Header1

registration form
first time posting. did some searches but didnt find exactly what i am looking for. dont flame cause

Help to integrate whois Domain Details to website
Hi,

can i know is their any php script r methods to add domain details to my website.

using variables in another page
I have a test database set up on localhost. I have a form that I can type a name into, hit the butto

type check while uploading
Hi Everyone,

How can I check the exact type of a file while uploading on my site?

Here

Need help PLEASE
ok i have this warning showing up

Warning: in_array() [function.in-array]: Wrong datatype for

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