Login   Register  
PHP Classes
elePHPant
Icontem

File: exemplo.php

Recommend this page to a friend!
Stumble It! Stumble It! Bookmark in del.icio.us Bookmark in del.icio.us
  Classes of Michel Wilhelm  >  ShellCont  >  exemplo.php  >  Download  
File: exemplo.php
Role: Example script
Content type: text/plain
Description: Exemplo de uso
Class: ShellCont
Keep track of site visits in a MySQL table
Author: By
Last change:
Date: 2007-01-20 08:42
Size: 866 bytes
 

Contents

Class file image Download
<?
/***********************************************************
* Autor   : Michel Wilhelm <michelwilhelm@gmail.com>       *
* Data    : 20/01/2007                                     *
* Release : 00/00/0000                                     *
* Projeto : Shell Cont                                     *
* Versão  : 1.0                                            *
* Arquivo : exemplo.php                                    *
************************************************************/
#----------------------------> Contador
# Chamando a pagina 
require_once("lib/ShellCont.class.php");
# Criando o objeto
$ShellCont = new ShellCont();
# Fazendo a incrementação do contador ou não
$ShellCont->Contador();
#----------------------------> Contador

$VisitasTotal $ShellCont->Visitas();
echo 
"$VisitasTotal usuarios já viram esta pagina";
?>