View Full Version : Simple Counter?
sdrawkcaB
August 16th, 2003, 05:26 AM
How do I just have a counter that shows how many people have checked the page.. All I want is the numbers, preferably text. I've seen it on tons of pages that has the text of whos checked the page, how can I do this?
andr.in
August 16th, 2003, 07:01 AM
This has been asked before!
Search!
Jubba
August 16th, 2003, 10:03 AM
my first post in this thread shows you how:
http://www.kirupaforum.com/forums/showthread.php?s=&threadid=24666&perpage=15&highlight=php%20flash&pagenumber=2
sdrawkcaB
August 19th, 2003, 11:32 PM
I don't want it in Flash tho.. Also, I would like another file that shows how many times a file has been downloaded. In text also..
Jubba
August 19th, 2003, 11:56 PM
that doesn't need to be done in Flash. It still shows you how to do it.
File downloads are a bit trickier. There are tutorials out there...
sdrawkcaB
August 20th, 2003, 07:40 PM
Care to try and find them for me?
abzoid
August 20th, 2003, 07:48 PM
Originally posted by sdrawkcaB
Care to try and find them for me?
Uhhh, how 'bout using www.google.com to find them yourself.
sdrawkcaB
August 21st, 2003, 12:08 PM
You don't think I've tried that? I've tried that for so long and I can't find anything.
abzoid
August 21st, 2003, 01:25 PM
You didn't mention that in your request, and with the way it was worded, it comes across as less than courteous.
Now, back to the problem at hand. Counting file downloads isn't much different, you just set up the download link to go to an intermediate script page that increments the count, then redirects to the desired file. If you want to get fancy, you can use the same script for multiple files by passing some form of fileID parameter in the URL link to the count script.
Jubba
August 21st, 2003, 09:43 PM
huh... google must not like you because I found about 10 pages worth of hits... I guess you just gotta know what you're looking for...
http://www.google.com/search?hl=en&ie=utf-8&oe=utf-8&q=php+download+counter
enjoy.
sdrawkcaB
August 24th, 2003, 12:02 AM
Is the script that does all this PHP? I only know HTML....
awligon
August 24th, 2003, 12:05 AM
look buddy, everyone's sh!tting all over and rightly so, but I feel bad for you so if you have php/mysql support, then I'll write you a file to use w/ phpMyAdmin that will create a small table to keep track of loads, etc... and also a .php file that will display the hitcount. You will of course need to send me the deed to your soul via express mail as payment.
Jubba
August 24th, 2003, 11:17 AM
then learn PHP. its really not that hard. and yes, the code that does it all is PHP and you need PHP because HTML can't do anything like saving values to a text file or anything like that...
sdrawkcaB
August 26th, 2003, 05:41 PM
Hmm. I'm not gonna learn PHP just for this. Since you're so good, can't you just attatch a .txt file with the proper instructions? I'll give you a dollar.
abzoid
August 26th, 2003, 05:52 PM
He didn't get good at PHP by having others do things for him, and the "dollar" comment is just plain insulting.
Jubba
August 26th, 2003, 09:49 PM
And I will officially never help you again. Thanks for your time. Enjoy your stay.
sdrawkcaB
August 26th, 2003, 10:07 PM
How the hell is that insulting? A dollar for doing that is pretty good.
abzoid
August 26th, 2003, 10:11 PM
*cough*
You have much to learn grasshopper, I suggest you start with a class in manners.
Jubba
August 26th, 2003, 10:12 PM
Actually, for programming a fully functional hit counter/visitor tracker system I could probably get anywhere from $50-250. Probably more depending on the features required. I don't have a lot of skill but I have enough of it to be insulted when someone underestimates me.
nobody
August 26th, 2003, 10:12 PM
Why don't you just do it yourself for free. Then sell it someone like yourself for a dollar.
awligon
August 26th, 2003, 10:24 PM
Yeah, you really should think to be more respectful. I just told you that I would write the thing for you, and I'm working on a $1000 job as I type this. And I'm no where near as good as Jubba, and also no where near as helpful. So long story short, you can take your dollar and shove it straight up your ignorant *****. There are a ton of people on this forum that go out of their way to help people like you who are too lazy to put forth any real effort. All I'm trying to do is return the favor when I know how. But hey, what do we know? You've got a dollar... First, graduate high school, then read a book and get a life.
sdrawkcaB
August 27th, 2003, 05:24 AM
^First off. You are an idiot. Nobody charges 250 dollars to do that. All I wanted was the code pasted. I didnt ask you to invent something. Put forth real effort? I'm not gonna learn PHP just for this. And shove it up my "*****" What the hell is that you idiot.
abzoid
August 27th, 2003, 06:33 AM
Well Mr. Backwards, if ignorance is bliss then you must be absolutely euphoric.
You're lucky I'm not a mod, I'd have banned you a couple of days ago.
To the others that frequent this forum:
As a third generation native Oregonian I feel compelled to apologize for the behavior of this bad seed who obviously must be a transplant from elsewhere.
Jubba
August 27th, 2003, 09:27 AM
You're calling me an idiot? Nice. Real nice. Why am I an idiot? Because I have put years of my time into learning these different languages so that I can charge higher prices? Put it this way, if you and I were both applying for the same job and you only knew HTML and I knew HTML, PHP, XML, and SQL and I was able to make it so that they never had to make updates on their site, and that they could change every aspect of their site without knowing HTML or any of those languages themselves... who do you think they would pick? Stop being an arse, I am trying to help you, not only with your question but also with what you decide to do next.
Moving on...I didn't say that I charged 250 for what you are asking for. I can charge 250 for something a bit more complete and complex. The point of my statement was basically that knowing HTML won't get you anywhere. HTML is powerless compared to other things and you really should start looking into learning another language (preferably a server-side language) if you really want to make any money in the web-design/web-programming game.
awligon
August 27th, 2003, 11:04 AM
Jubba, I will pay you to ban him. I can only take so much of this. I try to just stay away but the emails keep bringing me back.
Furthermore, you have no room to call anyone an idiot when you go around making an arse out of yourself all over the place.
http://www.kirupaforum.com/forums/showthread.php?s=&threadid=31873
http://www.kirupaforum.com/forums/showthread.php?s=&threadid=32667
Take the time to teach yourself something. I pretty much ran through php/mysql in under a week. It's not hard if you actually apply yourself.
DigitalPimp
August 27th, 2003, 11:45 AM
Originally posted by sdrawkcaB
^First off. You are an idiot. Nobody charges 250 dollars to do that. All I wanted was the code pasted. I didnt ask you to invent something. Put forth real effort? I'm not gonna learn PHP just for this. And shove it up my "*****" What the hell is that you idiot.
Just because you couldn't get 250$ for it (because your a dumbfuc|< ) doesn't mean nobody else can. I would charge that to do a counter system. You need to shut your mouf because it's writing checks your body can't cash, son.
Yea, your a fool. I sure hope you do something else with your life (ie McDonalds janitor, my gardener) because you make this industry look terrible.
Get off your lazy ***** and learn something.
If you were my son I'd backhand da sheot outta you.
reverendflash
August 27th, 2003, 02:52 PM
dp - stooping to his level will not gain you points with the mods...
leave this kind of thing to the people who can do something about it, rather than fanning the flames. I know you meant well, but it can make things a lot worse.
thanks
and sdrawkcaB ...
Appologize right now, take a step back, breathe... now are you ready to behave like the rest of the people on this forum? If not, I would be happy to modify your posting privelidges to reflect your attitude.
Just let me know, I await your decision.
Revhttp://www.aulman.com/rev.gif
DigitalPimp
August 27th, 2003, 03:45 PM
Sorry rev.
sdrawkcaB
August 27th, 2003, 05:46 PM
I wasn't calling you an idiot Jubba, I was talking to the person above me. And like I said before, I didn't want him to program some new one, just to paste the code into notepad, and attatch the .txt file. I thought I made that clear since I couldn't find one anywhere.
reverendflash
August 27th, 2003, 06:00 PM
this isn't a copy and paste forum...
please find someone who values their work the same as you... if you can.
what part of Oregon are you from?
I grew up outside Coos Bay...
Revhttp://www.aulman.com/rev.gif
awligon
August 28th, 2003, 02:00 AM
Originally posted by sdrawkcaB
I wasn't calling you an idiot Jubba, I was talking to the person above me. And like I said before, I didn't want him to program some new one, just to paste the code into notepad, and attatch the .txt file. I thought I made that clear since I couldn't find one anywhere.
Yeah Jubba, you took the time to learn it, why not pawn it off as *.txt files to people who are just lazy?
That deserves a :trout: .
sdrawkcaB
August 28th, 2003, 04:47 PM
I'm not going to learn PHP just to use 1 function, for 1 page.
reverendflash
August 28th, 2003, 04:50 PM
nobody here is getting paid to help you, so you can drop the attitude.
If you don't want to learn how to do this, then go pay someone to code it for you.
Those, are your only two options here.
Revhttp://www.aulman.com/rev.gif
sdrawkcaB
August 28th, 2003, 09:40 PM
I offered to pay him a dollar for 2 minutes of work.
abzoid
August 28th, 2003, 09:44 PM
Originally posted by sdrawkcaB
I offered to pay him a dollar for 2 minutes of work. :heavy sigh:
reverendflash
August 28th, 2003, 09:57 PM
Good Bye,
I hope you have a better time elsewhere...
Revhttp://www.aulman.com/rev.gif
abzoid
August 28th, 2003, 10:19 PM
Some things are just inevitable. :smirk:
reverendflash
August 28th, 2003, 10:28 PM
http://www.clas.ufl.edu/users/rogerbb/dunce.jpg
Revhttp://www.aulman.com/rev.gif
awligon
August 29th, 2003, 01:30 AM
teach yourself.
<?php
include 'db.php';
$mods = array("rev","ahmed","jubba");
$jerk = 'sdrawkcaB';
foreach($mods as $thisMod){
$answer = $_POST['reply'];
if ($answer == "yes"){
echo "Thank God<br />";
mysql_query("DELETE FROM `users` WHERE user = '$jerk';") or die("Error: You don't have the password because Kirupa won't make you a mod");
break;
}
if(!isset($answer)) {
echo "Hi, $thisMod would you please ban $jerk ?";
?>
<form name="form1" method="post" action="">
<input type="input" name="reply">
<input type="submit" name="Submit" value="Submit">
</form>
<?
}
}
?>
nobody
August 29th, 2003, 01:54 AM
Haha :P
I wondered how long that would take.
awligon
August 29th, 2003, 05:24 AM
what for him to get banned or for people to start picking on him in php like dorks?
nobody
August 30th, 2003, 07:05 PM
Haha, the banning, it's cool to pick on people in code.... :thumb:
Powered by vBulletin® Version 4.1.10 Copyright © 2012 vBulletin Solutions, Inc. All rights reserved.