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
problems with msg folder and mod 777 setting
Files shouldn't be on 777 anyway (unless it's for example a Perl script, but those usually need 755).
You can try adding just below and see if that helps.
You can try adding
Code: Select all
chmod($newfile, 0644);
Code: Select all
unset($footer);
Klemen, creator of HESK and PHPJunkyardWas this helpful? You can buy me a drink here 
You should follow me on Twitter here
Help desk software | Cloud help desk | Guestbook | Link manager | Click counter | more PHP Scripts ...
Also browse for php hosting companies, read php books, find php resources and use webmaster tools


Help desk software | Cloud help desk | Guestbook | Link manager | Click counter | more PHP Scripts ...
Also browse for php hosting companies, read php books, find php resources and use webmaster tools
re: fix suggestion



One day you will be rewarded for your generosity and hard work.