PHP Classes

File: test.php

Recommend this page to a friend!
  Classes of NaiFPHP   GSNR   test.php   Download  
File: test.php
Role: Example script
Content type: text/plain
Description: for test class
Class: GSNR
Get the title of the page visited before
Author: By
Last change:
Date: 16 years ago
Size: 1,389 bytes
 

Contents

Class file image Download
<?php
/***************************************************************************
============================================================================
| @ Class Name : GSNR ( Get Site Name Referer ).
| @ Version : 1.0
| @ Description : it's return (site name & url) of customer came.
| @ All rights reserved to : NaiF PHP
| @ Created In : 02-07-2007
| @ Support : wald_al_dala@hotmail.com
============================================================================
***************************************************************************/

include "GSNR.class.php";

echo
"<html><title>Class : Get Site Name Referer </title>";
echo
"<center><h1 style='color:red'>Get Site Name Referer</h1></center>";

// open a new object
// you can using : Un know , Live Enter , etc ..
$info = new GSNR("Live Inter");

////////////////
// example (1):
////////////////

echo "<h2> Example (1) :</h2>";

echo
"Title : <b><u>". $info->title_ref ."</u></b>\n";

echo
"<br>";

echo
"Url : <b><u>". $info->url_ref ."</u></b>\n\n<br>";


////////////////
// example (2):
////////////////

echo "<br><hr><h2> Example (2) :</h2>";

echo
" Welcome Guest , You come from : <a href='".$info->url_ref."'>". $info->title_ref ."</a>";


echo
"<br><br><br>",highlight_file(__FILE__,true);
?>