Large File

Is message board greying out your hair (at least what's left of it)? Let us help you here
Locked
vinman57
Posts: 65
Joined: Thu Jan 17, 2008 4:13 am

Large File

Post by vinman57 »

Like MBoard - simple, lightweight...but why does an entire web page need to be recreated as a message? The MSG folder is getting large as each message takes up about 10k.

Don't know much about script programming, and maybe this is the only way to do it, but if this can be improved upon, it would be appreciated.
Klemen
Site Admin
Posts: 10116
Joined: Fri Feb 11, 2005 4:04 pm

Post by Klemen »

All messages are stored as plain text on purpose - to limit the load on the server as much as possible. There are loads of other free scripts that use databases and generate posts on-the-fly (like phpBB), but Mboard has been designed intentionally not to do so.

You can make sure old messages are deleted by having $settings['keepoldmsg'] set to 0 and you will only have the number of messages set as $settings['maxposts'] stored at any time. But with modern hosting plans 10kb per message shouldn't really be a problem :wink:
Klemen, creator of HESK and PHPJunkyardWas this helpful? You can buy me a drink here Image

Image 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
vinman57
Posts: 65
Joined: Thu Jan 17, 2008 4:13 am

Post by vinman57 »

Klemen
I "get" that. I guess the question is why not just save the "text" of the message and not the entire header and footer in each file?

Again, I know nothing about script programming so this may be the only way of doing it.

No big deal anyway
Klemen
Site Admin
Posts: 10116
Joined: Fri Feb 11, 2005 4:04 pm

Post by Klemen »

You could for example try using SSI (SHTML) to dynamically insert header/footer and make saved files smaller. Check the 2nd and 3rd page of this topic:
viewtopic.php?t=1936
Klemen, creator of HESK and PHPJunkyardWas this helpful? You can buy me a drink here Image

Image 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
Locked