PHP Classes

File: image.php

Recommend this page to a friend!
  Packages of Vinay Yadav   vinWebStats   image.php   Download  
File: image.php
Role: Auxiliary script
Content type: text/plain
Description: Web Bug - Include this in all your scripts.
Class: vinWebStats
Web page statistics
Author: By
Last change: Role Changed from documentation to application script.
Date: 23 years ago
Size: 795 bytes
 

 

Contents

Class file image Download
<?php
    /**
    *  A web-bug the prints out an 1x1 invisible image
    */


    /**
    * A database handler is needed....
    */
    $db = new db_print;

    require_once("vinWebStats.class.php");

    vinWebBug();

    header('Content-type: image/gif');
    header('Expires: Sat, 22 Apr 1978 02:19:00 GMT');
    header('Last-Modified: ' . gmdate('D, d M Y H:i:s') . ' GMT');
    header('Cache-Control: no-store, no-cache, must-revalidate');
    header('Cache-Control: post-check=0, pre-check=0', false);
    header('Pragma: no-cache');

    printf(
    '%c%c%c%c%c%c%c%c%c%c%c%c%c%c%c%c%c%c%c%c%c%c%c%c%c%c%c%c%c%c%c%c%c%c%c%c%c%c%c%c%c%c%',
    71,73,70,56,57,97,1,0,1,0,128,255,0,192,192,192,0,0,0,33,249,4,1,0,0,0,0,44,0,0,0,0,1,0,1,0,0,2,2,68,1,0,59
    );
?>