want to join us? register, it's easy | help
category icon

PHP HTTPRequest Class

in PHP added by rvdavid, on 11/1/2008 advanced tutorials oo programming php5 request handling

By default, request data in PHP is handled by using Super Globals ($_POST, $_GET, $_COOKIES). Globals are bad for several reasons (outside the scope of this example google here). In an effort to remedy this, we need a way to encapsulate the request data into an object. By doing this, we are centralising access to request data through the one channel - the HTTP Request object.

comment save report
 
to add comments, create a free account, or sign in
no comments