Current location: Hot Scripts Forums » Programming Languages » PHP » php counter


php counter

Reply
  #1 (permalink)  
Old 03-07-04, 05:11 PM
pentax pentax is offline
Newbie Coder
 
Join Date: Jun 2003
Posts: 13
Thanks: 0
Thanked 0 Times in 0 Posts
php counter

I want to make a website counter, called through javascript. I have the following question:

what is better/faster/less cpu intensive, to call visitor's number from mysql and write it to image with imagemick or maybe gd library

or

have small pictures of every number, then group them together into a single image file, so I get one image with visitor number.
__________________
Dating service : www.dating-place.com
Reply With Quote
  #2 (permalink)  
Old 03-14-04, 06:07 AM
pentax pentax is offline
Newbie Coder
 
Join Date: Jun 2003
Posts: 13
Thanks: 0
Thanked 0 Times in 0 Posts
will anybody help me , please!
__________________
Dating service : www.dating-place.com
Reply With Quote
  #3 (permalink)  
Old 03-14-04, 02:48 PM
regeurk78 regeurk78 is offline
New Member
 
Join Date: Mar 2004
Posts: 4
Thanks: 0
Thanked 0 Times in 0 Posts
Well, I think that the second solution is faster and less cpu intensive. But nevertheless I would use gd lib to generate the counter, because it's more professional and the browser has only one file to load.
Reply With Quote
  #4 (permalink)  
Old 03-16-04, 02:19 PM
pentax pentax is offline
Newbie Coder
 
Join Date: Jun 2003
Posts: 13
Thanks: 0
Thanked 0 Times in 0 Posts
In both cases we ahve only 1 file to load.

on 1st example we covert a number into a picture;
in 2nd we group small pics on server together into one picture, then send it to user. In 2nd option we can have nicer counters.
__________________
Dating service : www.dating-place.com
Reply With Quote
  #5 (permalink)  
Old 03-16-04, 08:45 PM
rainydayproject rainydayproject is offline
Newbie Coder
 
Join Date: Oct 2003
Location: tennessee
Posts: 58
Thanks: 0
Thanked 0 Times in 0 Posts
Why not just a plain text counter? simple and fast

Last edited by rainydayproject; 03-16-04 at 08:47 PM.
Reply With Quote
Reply

Bookmarks


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Click counter php wildchrome Script Requests 6 05-13-09 02:21 PM
BBClone - A PHP Web counter on steroids jrobbio General HotScripts Site Discussion 8 06-05-04 05:05 PM
PHP counter rogue_the_one PHP 3 02-26-04 12:15 PM
100 Web Templates & 10 PHP Scripts for sale! HostersUK.co.uk General Advertisements 0 01-10-04 12:31 AM
Looking for goog php counter. Daniel141 PHP 3 06-28-03 11:49 AM


All times are GMT -5. The time now is 09:12 AM.
vBulletin® Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.