KidsLovePC Contact Us
  Home   PHP  Graphics ASP  JavaScript   J2EE  HTML  JAVA   Swing   Webtip  Forums  Lyric  Free sheet music  Ringtones

PHP Counter -- Add own counter styles

If you want to add your style to PHPGCount that's easy. All you need is ten (10) images (equall height and widht), each with one number (0,1,2,3,4,5,6,7,8,9). Save image with number 0 as 0.gif (or 0.jpg or 0.png or whatever format you use), image with 1 to 1.gif, image with 2 to 2.gif etc... so you have 10 images, each with one number. Now just create a new folder in the "styles" directory - the name of the folder will be the name of your style. For example if you want to call the style "myblue" you would create folder "gcount/styles/myblue" and upload all ten images to that folder. Then you could just set the myblue style as the default style or use &style=myblue (as explained above) where you want the myblue to be used.

If your style images are different type then the default image extension (as set in graphcount.php in $default_ext) you can add &ext=EXTENSION to the SCRIPT SRC parameter. Replace extension with the file extension (without a dot!) of the images of your style.

That probably sounded a bit confusing, but it really isn't, here's an example:

Let's say you are using style web1 by default, which has GIF file format images with .gif extension. That's why you have $default_ext set to:
$default_ext = "gif" (".gif" extensions, but without the dot (.)).

Now you created your own style myblue. You saved images as JPEG files meaning they have .jpg extension, which is different from the default one (.gif). That's why you must add &ext=jpg (.jpg without the dot!) to the counter code in order to use your style counter:

<SCRIPT LANGUAGE="Javascript" SRC=""><!--

If you saved the images as GIF (.gif) you would simply use

NOTE: All the styles that come with this counter by default are GIF type!


This tutorial includes the following section:



PHP Calendar
Comprehensive PHP Web Calendar
Configurable PHP Calendar
PHP Calendar
PHP Image Processing
PHP grahic softwares
PHP create real-time dynamic chart
create antispam image(image verification)
Add water mark to image
PHP Image processing introduction
Add text on Image
Create thumbnail for image
Create image from text on fly
PHP code sample
PHP create dynamic PDF with FPDF
PHP create dynamic PDF with PDFLib
PHP create dynamic PDF with ClibPDF
Improved PHP configurable hit counter
Install phpMyAdmin,MySql, PHP
PhpMyAdmin export/import data
A simple PHP RSS feed reader
PHP include (SSI)
Working with Forms
PHP formmail Generator
Using phpMyAdmin Create Database
Insert Form Data into Database
Retrieve data from Database
Retrieve multiple records
Batch insert text using phpMyAdmin
Using phpMyAdmin insert binary file
Insert binary file using PHP code
Using form insert binary file into MySQL
Retrieve binary file from MySQL
Image hosting business in minutes
Send HTML mail in PHP
Send bulk emails in PHP
Polling/Rating System in PHP
Polling/Rating System in PHP(radio button)
Check visitor's IP address
Check reciprocal link
PHP tutorial
What is PHP?
Install PHP on Windows XP (part1)
Install PHP on Windows XP (part2)
PHP open and closing tags
PHP types
Logic Structures
Include files
Set cookie and delete cookie
Most often used MySQL functions



Printer Inkjet A Z lyricsLearn ChineseHome|PHP|Swing|HTML|JavaScript|ASP|JAVA|Forum|WebTip|Contact Us
Copyright © All rights reserved(new). Privacy|Copyright
designed by

Please help us cover the web site maintenance fee.
barcode scanner Thermal Printer credit card machine bar code printer