MVC Framework routing all requests through index.php - performance

I'm currently developing a new MVC framework for projects in my company.  I'm a little new to MVC (Model View Controller) and have a question.   Is there any performance consequences by routing all url requests through a single index.php script?  For example, and requests to mydomain.com would go through mydomain.com/index.php.  Example requests could be mydomain.com/articles/show or mydomain.com/blog/add.

The index.php script would initialize the main controller which would then call the appropriate controller class to handle the request.
LVL 3
purfusAsked:
Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

ClickCentricCommented:
It depends on what you're rating it in comparison to?  Just individual php files?  There shouldn't be.  As long as 'index.php' is written well enough to only load the common shared code before loading in the appropriate code for the specific page, it should be just as fast as going to an individual php file which basically has to do the same thing.  There would be a 'slight' difference since index.php has to load and then load the other php file, but depending on the machine it's running on, the difference should be between nanoseconds and microseconds.
0

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
neesterCommented:
There shouldnt be any issues with that at all.
The PHP script is irrelevant, the php binary is what runs the script...

Eg,
On windows the php.exe is what interprets the .php files.
If wouldnt make a difference if you had 20 files or just 1...
Unless that 1 file is uber inefficent... the coding of that file is what would cause issues.
0
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
PHP

From novice to tech pro — start learning today.

Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.