PHP Classes
Icontem

File: examples/example2.php


  Search   All class groups All class groups   Latest entries Latest entries   Top 10 charts Top 10 charts   Newsletter Newsletter   Blog Blog   Forums Forums   Help FAQ Help FAQ  
  Login   Register  
Recommend this page to a friend! ReTweet ReTweet Stumble It! Stumble It! Bookmark in del.icio.us Bookmark in del.icio.us
  Classes of David Ferreira  >  Rex  >  examples/example2.php  
File: examples/example2.php
Role: Example script
Content type: text/plain
Description: Example script on how to use Rex class
Class: Rex
Check proxy addresses and filter Javascript
 

Contents

Class file image Download
<?php
// example2 php showing Rex class in action

// ...
require "rex.class.php";
$rex = new rex();

if (
preg_match("/somethingbanned/i"$_POST['message']))
{
    
$ip $_SERVER["REMOTE_ADDR"];
    
$a $rex->recordlog("$ip""Malicious word on message");
    echo 
"Your somethingbanned word was record for evaluation.";
} else
{
    echo 
"Keep up the PHP rolling.";
}
// ...


?>

 
  Advertise on this site Advertise on this site   Site map Site map   Statistics Statistics   Site tips Site tips   Privacy policy Privacy policy   Contact Contact  

For more information send a message to :
info at phpclasses dot org.
Copyright (c) Icontem 1999-2009 PHP Classes - PHP Class Scripts
  PHP Book Reviews - Reviews of books and other products