QUOTE
Warning: fopen(energy.txt): failed to open stream: Permission denied in /home/ruben/public_html/insel/emu.php on line 24
I'm getting error messages like this everywhere on my sites where I try to change text files using PHP, even though I thought the right permissions were assigned and it worked earlier.
Do you have any idea what I did wrong? Maybe some setting in Cpanel that I screwed up or something? Or something in my .htaccess file? I sadly don't know the time of the screw-up, so I can't link it to my actions. I suspect something in .htaccess, that's why I post it here:
CODE
php_value upload_max_filesize 70M
php_flag register_globals off
php_flag magic_quotes_gpc off
php_flag magic_quotes_runtime off
AddType application/x-httpd-php rss
AddHandler application/x-httpd-php rss
php_flag register_globals off
php_flag magic_quotes_gpc off
php_flag magic_quotes_runtime off
AddType application/x-httpd-php rss
AddHandler application/x-httpd-php rss
I am using the fopen functions, not popen and the files are set to have their user rights set to "everyone may do anything" (i believe the number is 666?).
All help appreciated,
Ruben

