Script URL: http://www.lasarenas.co.uk/board/mboard.php
Version of script: 1.22
Hosting company: freeola.com
URL of phpinfo.php: http://www.lasarenas.co.uk/phpinfo.php
URL of session_test.php:
What terms did you try when SEARCHING for a solution:
Write your message below:
Hi,
My ISP upgraded their servers on Monday and are causing me headaches.
When somebody posts on the message board the resulting html file of their message has the incorrect permissions set. (it worked fine before upgrade). I've contacted my ISP and they are not prepared to change things back their end so I'm left to try and find a solution.
One solution I thought of is to add a CHMOD command to your script straight after the html meassage file is created. I've tried a quick php file with CHMOD in and it works a treat. So what I need is to find the variable that stores the file name of the new message in your code. Could you possibly point me in the direction of what to look for in your code?
Hope that all makes sense?
Thanks!
Problem with viewing new messages since ISP server upgrade
-
- Posts: 4
- Joined: Mon Jun 25, 2007 1:48 pm
-
- Posts: 4
- Joined: Mon Jun 25, 2007 1:48 pm
Think I've found the info I need.
If I add my CHMOD command to the section of your code below it seems to work a treat.
$newfile="msg/".$count.".".$settings['extension'];
$fp = fopen($newfile,"wb") or problem("Couldn't create file "$newfile"! Please CHMOD the "msg" folder to 666 (rw-rw-rw)!");
fputs($fp,$content);
fclose($fp);
unset($content);
unset($header);
unset($footer);
chmod($newfile, 0644);
If I add my CHMOD command to the section of your code below it seems to work a treat.
$newfile="msg/".$count.".".$settings['extension'];
$fp = fopen($newfile,"wb") or problem("Couldn't create file "$newfile"! Please CHMOD the "msg" folder to 666 (rw-rw-rw)!");
fputs($fp,$content);
fclose($fp);
unset($content);
unset($header);
unset($footer);
chmod($newfile, 0644);