PHP Dispatch Method

Discussions of secure PHP coding. Security in software is important, so don't be afraid to ask. And when answering: be anal. Nitpick. No security vulnerability is too small.

Moderator: General Moderators

Post Reply
webmattster
Forum Newbie
Posts: 1
Joined: Wed Sep 30, 2009 8:17 am

PHP Dispatch Method

Post by webmattster »

Referring to this page: http://phpsec.org/projects/guide/1.html#1.4.1

I believe I understand that PHP Dispatch method allows for all page requests to go through one page instead of having to have everything easily accessible to world, you only have one page accessible and all requests go through that page. Is that correct? Does that mean you have to put a lot of information in the dispatch.php file for each page so it knows where to forward to. I guess I don't really understand what this is supposed to do. Any help would be appreciated.

Thanks!
User avatar
kaisellgren
DevNet Resident
Posts: 1675
Joined: Sat Jan 07, 2006 5:52 am
Location: Lahti, Finland.

Re: PHP Dispatch Method

Post by kaisellgren »

I use the Front Controller pattern. All requests go through one index.php file except for some images and CSS. All the rest (PHP scripts, templates, files) are placed outside of the document root.
Post Reply