Free Web Hosting Forum
(#1 (permalink))
Old
ionutica's Avatar
Member
ionutica is on a distinguished road
 
Posts: 53
Join Date: May 2011
Location: Romania, Bucharest
Smile A Hitcounter With Images - 05-14-2011, 01:07 PM

Code:
<?php

$iPad = 7;
$txt = file_get_contents("my/full/server/path/counter.txt");

if (!isset($_COOKIE['countplus']) || $_COOKIE['countplus'] != 1)  
{
    ++$txt;
    file_put_contents("my/full/server/path/counter.txt", $txt);  
    setcookie('countplus', 1, time()+86400);
}

$sTxt = str_pad($txt, $iPad, '0', STR_PAD_LEFT);
$iTxtLength = strlen($sTxt);
for ($i = 0; $i < $iTxtLength; ++$i)
{
print '<img src="../IMG/' . $sTxt[$i] . '.bmp" />';
}
?>
The images are in the atachment.
Reply me if you like it and add it to my reputation(I hate beeing a Junior Member) and visit my website http://ionut.net63.net
Attached Files
File Type: zip images.zip (2.5 KB, 9 views)
Reply With Quote
Sponsored Links
(#2 (permalink))
Old
CSS_Man's Avatar
Senior Member
CSS_Man is on a distinguished road
 
Posts: 2,912
Join Date: Jun 2010
Location: Earth
Default 05-14-2011, 01:11 PM

Its nice, but the numbers could be better. I personally think they look like numbers on a digital clock.



Feel free to PM me for help
If someone has helped you please spread some karma
Reply With Quote
(#3 (permalink))
Old
ionutica's Avatar
Member
ionutica is on a distinguished road
 
Posts: 53
Join Date: May 2011
Location: Romania, Bucharest
Default 05-14-2011, 01:15 PM

Is there a way to get a better reputation?(senior member)
Reply With Quote
(#4 (permalink))
Old
ionutica's Avatar
Member
ionutica is on a distinguished road
 
Posts: 53
Join Date: May 2011
Location: Romania, Bucharest
Default 05-14-2011, 01:19 PM

You can put your own numbers I won't be mad!
Reply With Quote
(#5 (permalink))
Old
willypt's Avatar
Senior Member
willypt is on a distinguished road
 
Posts: 703
Join Date: Jul 2010
Location: Jakarta, Indonesia
Send a message via MSN to willypt
Default 05-14-2011, 01:49 PM

Sure, post more posts...


Need assistance in installing your script? Why don't ask http://free-installations.info/
Reply With Quote
(#6 (permalink))
Old
Leder678's Avatar
Senior Member
Leder678 is on a distinguished road
 
Posts: 1,430
Join Date: Jan 2009
Location: Norway
Send a message via MSN to Leder678
Default 05-14-2011, 02:51 PM

Not bad, though I would make the image in php, more code, but it probably takes less space and uses less bandwidth.


Follow me on twitter @Mortenrb

W3Fools - Read and learn

Please AT LEAST read the 10 bolded lines of the TOS at:
http://www.000webhost.com/includes/tos.php
Reply With Quote
(#7 (permalink))
Old
BenLaiid's Avatar
Junior Member
BenLaiid is on a distinguished road
 
Posts: 28
Join Date: Apr 2011
Location: Tunisia
Default 05-17-2011, 11:48 AM

Quote:
Originally Posted by Leder678 View Post
Not bad, though I would make the image in php, more code, but it probably takes less space and uses less bandwidth.
The total size of the images is 20ko (2*10). If you transform them you will not win space or bandwith, contrary probably you will loose the quality of the images and bigger source files due to "more code".

Last edited by BenLaiid; 05-17-2011 at 11:50 AM.
Reply With Quote
(#8 (permalink))
Old
emmanuel's Avatar
Senior Member
emmanuel is on a distinguished road
 
Posts: 213
Join Date: Feb 2011
Location: Somewhere In South Africa
Default 05-17-2011, 03:14 PM

Good script.
Reply With Quote
(#9 (permalink))
Old
Junior Member
wentalau is on a distinguished road
 
Posts: 3
Join Date: Jul 2011
Default 07-16-2011, 07:29 AM

more update pls...


Visit my blog for free download movie, tv series, games and other cool stuff
Reply With Quote
(#10 (permalink))
Old
Senior Member
RibbitHost is on a distinguished road
 
Posts: 279
Join Date: Jun 2011
Default 07-16-2011, 08:47 PM

Why cant you just generate your images on the fly? I know that you can do that with the GD libraries using php...
Reply With Quote
Reply

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 On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off

Forum Jump



Powered by vBulletin® Version 3.8.2
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.5.2
vBulletin Skin developed by: vBStyles.com