PHP Classes

File: example.php

Recommend this page to a friend!
  Classes of Zulfugar Ismayilzadeh   Saff Request   example.php   Download  
File: example.php
Role: Example script
Content type: text/plain
Description: simple example
Class: Saff Request
Retrieve the current HTTP request variables
Author: By
Last change:
Date: 13 years ago
Size: 1,181 bytes
 

Contents

Class file image Download
<?php
/*
 * Copyright (c) SAFAROFF Creative Agency
 * Coded: Agshin Y. Khaligov & Ismayilzadeh Zulfugar
 */

require("SaffRequest.class.php");

$request = new Request();

//POST Request example

$request->POST__examplename;

// 'examplename' is example key of POST array



//GET Request example

$request->GET__examplename;

// 'examplename' is example key of GET array



//FILES Request example

$request->FILES__examplename;

// 'examplename' is example key of FILES array



//If you don't know request type, can easy handle the value.

$request->examplename;

// 'examplename' is example key of unknown type Request array





//POST Request filter with Regulat Expression

$request->POST("/^[0-9]/");

// In this case you get values from POST array witch begins with number.



//GET Request filter with Regulat Expression

$request->GET("/^[0-9]/");

// In this case you get values from GET array witch begins with number.


//Unknow type Request filter with Regulat Expression

$request->REQUEST("/^[0-9]/");

// In this case you get values from unknown type Request array witch begins with number.



?>