Username: Save?
Password:
Home Forum Links Search Login Register*
    News: Welcome to the TechnoWorldInc! Community!
Recent Updates
[May 13, 2025, 02:04:25 PM]

[May 13, 2025, 02:04:25 PM]

[May 13, 2025, 02:04:25 PM]

[May 13, 2025, 02:04:25 PM]

[April 12, 2025, 01:54:20 PM]

[April 12, 2025, 01:54:20 PM]

[April 12, 2025, 01:54:20 PM]

[April 12, 2025, 01:54:20 PM]

[March 12, 2025, 03:05:30 PM]

[March 12, 2025, 03:05:30 PM]

[March 12, 2025, 03:05:30 PM]

[March 12, 2025, 03:05:30 PM]

[January 03, 2025, 03:29:12 PM]
Subscriptions
Get Latest Tech Updates For Free!
Resources
   Travelikers
   Funistan
   PrettyGalz
   Techlap
   FreeThemes
   Videsta
   Glamistan
   BachatMela
   GlamGalz
   Techzug
   Vidsage
   Funzug
   WorldHostInc
   Funfani
   FilmyMama
   Uploaded.Tech
   Netens
   Funotic
   FreeJobsInc
   FilesPark
Participate in the fastest growing Technical Encyclopedia! This website is 100% Free. Please register or login using the login box above if you have already registered. You will need to be logged in to reply, make new topics and to access all the areas. Registration is free! Click Here To Register.
+ Techno World Inc - The Best Technical Encyclopedia Online! » Forum » THE TECHNO CLUB [ TECHNOWORLDINC.COM ] » Programming Zone » PHP
 PHP: Image based hit counter - Spider Count
Pages: [1]   Go Down
  Print  
Author Topic: PHP: Image based hit counter - Spider Count  (Read 1460 times)
Hellraiser
TWI Trailblazer
*******



Karma: 3
Offline Offline

Posts: 2476


View Profile
PHP: Image based hit counter - Spider Count
« Posted: August 29, 2007, 03:27:48 PM »


Image based hit counter - Spider Count


1. PURPOSE - Brief Explanation, Advantages, and Disadvantages
spiderCount v1.1 is a simple image-based hits count. This script increments a hits count every time it is called. It also outputs the count as a JPEG image. The hits count is stored in a text file. The JPEG image is generated using images of the digits 0-9. The user can begin the counter at any number. The user may also specify the minimum number of digits to display. Until that number is reached by the hits count, the script will append leading zeroes. spiderCount is hard-coded to support the JPEG image format only. However, it is easy to modify the script to work with another format.

2. REQUIREMENTS - Necessary Software and Server Access
PHP must be installed on your Web server. In addition, it must be compiled with the GD library of image functions.

3. INSTALLATION - Step-by-Step
(1) Download and unzip spidercount.zip. You should now have the following files:
* counter.php
* counter.txt
* images/

The images/ directory includes images for the digits 0-9.

(2) Open counter.php for editing. Edit the variables (found under "// SET VARIABLES"). If you intend to use your own digit images, set the $digits_location variable to the path to these images, including the trailing forward slash. Also set the $digit_width and $digit_height variables. Note that all digit images should have the same dimensions. Save your changes.
(3) If you wish to begin the counter at a number other than 0, open counter.txt for editing, enter your preferred number, and save your changes.
(4) Upload the files. Give counter.txt read and write permissions.
(5) Finish by testing. Simply visit the URL for counter.php.

4. CUSTOMIZATION
As explained above, you may supply your own images for the digits 0-9.

5. HOW TO USE
You will likely want to embed counter.php within an existing Web page. Simply add this HTML tag to your page:
<img src="counter.php">

6. CHANGE LOG

11/3/2005: Version 1.1 now outputs a single JPEG image.

Download the Attached File below
[Note: If u can't see any file attached, Please Register and Login with your id.]

Logged

Pages: [1]   Go Up
  Print  
 
Jump to:  

Copyright © 2006-2023 TechnoWorldInc.com. All Rights Reserved. Privacy Policy | Disclaimer
Page created in 0.455 seconds with 24 queries.