change msg file type

Is message board greying out your hair (at least what's left of it)? Let us help you here
icepack
Posts: 70
Joined: Mon Oct 15, 2007 1:38 pm

change msg file type

Post by icepack »

hello,
if the msg file type was changed from .html to say .php would it make the pages dynamic?
[b][color=red][url=http://ilumu.com]UK Website Design Specialists - ILUMU.COM[/url][/color][/b]
Klemen
Site Admin
Posts: 10116
Joined: Fri Feb 11, 2005 4:04 pm

Post by Klemen »

It should, give it a try.
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
icepack
Posts: 70
Joined: Mon Oct 15, 2007 1:38 pm

Post by icepack »

i've tried changing html tp php in settings,
but instead of linking to the message, the title directs to a pop-upm, which when open reads "A file permissions error has occurred. Please check the permissions on the script and the directory it is in and try again."
i have followed all permissions instructions, and it works fine for html
[b][color=red][url=http://ilumu.com]UK Website Design Specialists - ILUMU.COM[/url][/color][/b]
Klemen
Site Admin
Posts: 10116
Joined: Fri Feb 11, 2005 4:04 pm

Post by Klemen »

It's possible your host doesn't allow PHP scripts in a folder with chmod 777?
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
icepack
Posts: 70
Joined: Mon Oct 15, 2007 1:38 pm

Post by icepack »

hmmm, it's very strange because it works perfectly with html, but i only get the function errors when changed to php. i'm pretty sure it's not a host problem, as they pretty much allow everything, so any other thoughts? thanks!
[b][color=red][url=http://ilumu.com]UK Website Design Specialists - ILUMU.COM[/url][/color][/b]
Klemen
Site Admin
Posts: 10116
Joined: Fri Feb 11, 2005 4:04 pm

Post by Klemen »

Can you copy/paste the exact error(s) you get (or post a link to a test php file), might give us a better idea of what's going on.
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
icepack
Posts: 70
Joined: Mon Oct 15, 2007 1:38 pm

Post by icepack »

it works fine there, until i CHMod count.txt and threads.txt (from 644) to 666 the msg folder to 777 as required, then i get the same problem as before... so it does seem like my host

i'm guessing everything would work if i left CHMod as 644, but would that be inadvisable, due to vunerabilities?

is there another extension i could try which might work? asp, shtml?
Last edited by icepack on Mon Apr 21, 2008 5:12 pm, edited 1 time in total.
[b][color=red][url=http://ilumu.com]UK Website Design Specialists - ILUMU.COM[/url][/color][/b]
Klemen
Site Admin
Posts: 10116
Joined: Fri Feb 11, 2005 4:04 pm

Post by Klemen »

shtml should work fine under 777. However, if it works fine when you have files on 644 and msg folder on 755 you can just leave it like that, it won't make it any more vulnerable.
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
icepack
Posts: 70
Joined: Mon Oct 15, 2007 1:38 pm

Post by icepack »

hi Klemen,
would shtml make it dynamic? if so, it might be worth my changing just that as opposed to fiddling with chmod.
thanks again
[b][color=red][url=http://ilumu.com]UK Website Design Specialists - ILUMU.COM[/url][/color][/b]
Klemen
Site Admin
Posts: 10116
Joined: Fri Feb 11, 2005 4:04 pm

Post by Klemen »

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
icepack
Posts: 70
Joined: Mon Oct 15, 2007 1:38 pm

Post by icepack »

klemen, you are a star!
[b][color=red][url=http://ilumu.com]UK Website Design Specialists - ILUMU.COM[/url][/color][/b]
icepack
Posts: 70
Joined: Mon Oct 15, 2007 1:38 pm

Post by icepack »

sorry klemen, more bad news...
i've noticed my mboard is not automatically deleting the msg when the limit set was reached. i have tried to delete it myself by using the red cross, but i get the following error:

Warning: unlink(msg/273.shtml) [function.unlink]: No such file or directory in .....

Can't delete this post, access denied or post doesn't exist!

i think the reason behind is because i recently changed the extension from .html to .shtml, and the old msg should all be .html, but it thinks they are .shtml
[b][color=red][url=http://ilumu.com]UK Website Design Specialists - ILUMU.COM[/url][/color][/b]
Klemen
Site Admin
Posts: 10116
Joined: Fri Feb 11, 2005 4:04 pm

Post by Klemen »

Yes, unfortunately that happens if you change message type in the middle of posts (and MBoard has no database with old name stored). Try changing extension back to html, delete old posts, then change back to shtml.
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
icepack
Posts: 70
Joined: Mon Oct 15, 2007 1:38 pm

Post by icepack »

hi klemen,
i had a feeling that was the issue. would this work:
delete all old html files manually (i.e. relevant thread and msg files) via ftp software, so that onlt shtml files are left. then if the new limit was reached (e.g. 50) would it then automatically delete them as before.
[b][color=red][url=http://ilumu.com]UK Website Design Specialists - ILUMU.COM[/url][/color][/b]
Klemen
Site Admin
Posts: 10116
Joined: Fri Feb 11, 2005 4:04 pm

Post by Klemen »

That would work, but you'd have links to non-existent files still in your threads.txt file.

You can try two things instead:

1. rename all .html files to .shtml in your msg folder and inside threads.txt change all .html to .shtml then try manually deleting files (open post and click the red X button)

- or -

2. as suggested before try changing extension back to html (in settings.php), delete old posts using the red X, then change back to shtml in settings.php.
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