Page 1 of 1

problems with msg folder and mod 777 setting

Posted: Fri Mar 07, 2008 7:22 pm
by puniksem
I've searched for an answer here but found nothing, so I ask you...

My service providers recently stopped file permissions being set to 777.
However one can set 777 to the msg folder.

The problem I have is that all *.html's saved by the script are set to 600 making it impossible for users to view posted messages.

Can you offer me a code snippet that I could add to mboard.php so it would mod the html files to 644? Then everything would work.

Thanks in advance

Posted: Sat Mar 08, 2008 11:49 am
by Klemen
Files shouldn't be on 777 anyway (unless it's for example a Perl script, but those usually need 755).

You can try adding

Code: Select all

chmod($newfile, 0644);
just below

Code: Select all

unset($footer);
and see if that helps.

re: fix suggestion

Posted: Sat Mar 08, 2008 3:57 pm
by puniksem
:D Thank you Klemen very much, that worked a treat, now my worries are over.

:D You're the best and your scripts are second to none. :D
One day you will be rewarded for your generosity and hard work.