Forum Moderators: coopster

Message Too Old, No Replies

PHP Dispatch Method

         

Webmattster

12:09 pm on Sep 30, 2009 (gmt 0)

10+ Year Member



Referring to this page: [phpsec.org...]

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!

jd01

1:52 pm on Sep 30, 2009 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



That's the way it looks to me, but it doesn't 'forward' it 'includes' or 'requires', so you would put necessary information for the include or require on dispatch.php and then those files would, for lack of better wording, be opened as part of dispatch.php.

So, basically, dispatch.php would GET the information necessary from a Query_String on the URL and would then 'include' the necessary file to deal with the information as part of dispatch.php, which could really be called just about anything you want, including index.php.