miniBB Support Forums | 18 years on The Web
miniBB ® 


 | Start | Register | Search | Statistics | File Bank | Manual |
Suggestions miniBB Support Forums / Suggestions /   

why we don't use many file php for each action

Author tkx211
#1 | Posted: 10 Aug 2011 22:12 
This is my opinion.
Now we use index.php for all action.
why we don't use many .php file for each action?
- index.php?action=vtopic?forum=1 -> vtopic.php?forum=1
- index.php?action=vthread?forum=1&topic=2 -> vthread.php?forum=1&topic=2
=> don't run index.php if not index page
- remove action in URL -> shorter
- faster, because size file down
I think miniBB doesn't mean minimum amount of file, but minimum time to execute

Author Paul
Lead Developer
#2 | Posted: 11 Aug 2011 08:15 | Edited: Paul 
I think you may achieve shorter URLs with a special add-on we have, "Keyword-Rich URLs".

It will not critically affect the file size. All such URLs are specified just in few places, and later they are build dynamically.

Also, it's not really secure to use multiple files instead of one. Now security routine passes through the index.php and it then includes the proper module. In your suggestion, routine should pass through many modules, and if it's updated, it may be also updated in many modules. It's not productive in terms of development.

Thanks for suggestion, but after running miniBB for years with the present URLs, I think, I will not consider it :)

Suggestions miniBB Support Forums / Suggestions /
 why we don't use many file php for each action
 Share Topic's Link

Your Reply Click this icon to move up to the quoted message

Post as a Guest, leaving the Password field blank. You could also enter a Guest name, if it's not taken by a member yet. Sign-in and post at once, or just sign-in, bypassing the message's text.

Before posting, make sure your message is compliant with our forum posting rules. If not, it may be locked or deleted with no explanation.


miniBB Support Forums Powered by Forum Software miniBB ® Home  Features  Requirements  Demo  Download  Showcase  Gallery of Arts
Compiler  Premium Extensions  Premium Support  License  Contact Us
Check out the Captcha add-on: protect your miniBB-forums from the automated spam and flood.