PHP Classes

File: example2.php

Recommend this page to a friend!
  Classes of Patxi Echarte   HTTP Request   example2.php   Download  
File: example2.php
Role: Example script
Content type: text/plain
Description: Example 2
Class: HTTP Request
Gather information about the current HTTP request
Author: By
Last change:
Date: 18 years ago
Size: 352 bytes
 

Contents

Class file image Download
<?php

/**
* HttpRequest example 2
*
* How to substitute _GET, _POST and _COOKIE matrix with the HttpRequest matrix
* magic_quotes filtered
*/


include_once('HttpRequest.class.php');

$httpRequest =& new HttpRequest();

$_GET =& $httpRequest->queryString;
$_POST =& $httpRequest->form;
$_COOKIE =& $httpRequest->cookies;

?>