Problem with fopen

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
jidospod
Forum Commoner
Posts: 33
Joined: Tue Jun 11, 2002 1:05 am

Problem with fopen

Post by jidospod »

Warning: fopen("config.php", "w+") - Permission denied in /home/jidospod/public_html/index.php on line 342

Code: Select all

$conf_file = fopen('config.php',"w+");
I dont know why I am getting permission denied on this! Any help would be appreciated. I even chmod'd the file to 755 and still not working.
User avatar
volka
DevNet Evangelist
Posts: 8391
Joined: Tue May 07, 2002 9:48 am
Location: Berlin, ger

Post by volka »

755 is allow read by group/other and allow execute by group/other.
Who is the owner of this file? You or the webserver/php process?
Post Reply