Re: [PHP] PHP Counter?

2004-09-27 Thread Thomas Goyne
On Mon, 27 Sep 2004 11:29:34 +0200, Nick Wilson [EMAIL PROTECTED] wrote: * and then raditha dissanayake declared These counters are pretty much useless at gauging web traffic. you would be better off using log analysis tool. Who said anything about web traffic? ;-) which in turn

[PHP] PHP Counter?

2004-09-26 Thread Nick Wilson
Hi all, I have a script that at the present just outputs '$count .'br /'' after each iteration of a foreach() loop. I have set implicit_flush so that this works. That's clearly monkey poo though eh? :-) Do I have to get into unkown waters and try and make PHP talk to JS to achieve a kind of

Re: [PHP] PHP Counter?

2004-09-26 Thread Marek Kilimajer
Nick Wilson wrote: Hi all, I have a script that at the present just outputs '$count .'br /'' after each iteration of a foreach() loop. I have set implicit_flush so that this works. That's clearly monkey poo though eh? :-) Do I have to get into unkown waters and try and make PHP talk to JS to

RE: [PHP] PHP Counter on HTML Page

2003-08-14 Thread PHPSpooky
Astrum! Once in a while.. Sure. Dominor! PHPSpooky Can you -please- do some of your own legwork once in a while? http://www.google.com/search?q=imagemagick+tutorial http://www.google.com/search?q=gd+php+tutorial -

Re: [PHP] PHP Counter on HTML Page

2003-08-14 Thread John W. Holmes
PHPSpooky wrote: Astrum Et Securis! I don't want to use iFrames.. is there any other way? I want to use my own php counter with lil information.. which updates the database on page load incrementing the counter and catching the few Server Variables.. and just display the Hits on that page

RE: [PHP] PHP Counter on HTML Page

2003-08-14 Thread Mike Migurski
I've never used GD or ImageMagick before.. can you guide me to any tutorial, script, reference.. something upon the same that can help me out? Can you -please- do some of your own legwork once in a while? http://www.google.com/search?q=imagemagick+tutorial

[PHP] PHP Counter on HTML Page

2003-08-14 Thread PHPSpooky
Astrum Et Securis! I don't want to use iFrames.. is there any other way? I want to use my own php counter with lil information.. which updates the database on page load incrementing the counter and catching the few Server Variables.. and just display the Hits on that page. However.. that page

RE: [PHP] PHP Counter on HTML Page

2003-08-14 Thread PHPSpooky
Astrum! I've never used GD or ImageMagick before.. can you guide me to any tutorial, script, reference.. something upon the same that can help me out? Thanks, Dominor! PHPSpooky Write a PHP script that makes the image for you using GD or Imagemagick, then just include it like any other

[PHP] Counter has gremlins

2003-02-17 Thread Brian V Bonini
I have this basic counter: ?php $counterFile = ./counter.txt; function displayCounter($counterFile) { global $counted; $fp = fopen($counterFile, 'rw'); $num= fgets($fp,7); if (!$counted) { $num+= 1;

Re: [PHP] Counter has gremlins

2003-02-17 Thread Jason Sheets
You could be having problems with multiple users, if two visitors come at the same time file locking problems come into play, one script could unlink the file at the same time another script tries to open it resulting in an empty file. A database would be a better way to do this, but assuming you

Re: [PHP] Counter has gremlins

2003-02-17 Thread Andrew Brampton
the first. Andrew - Original Message - From: Brian V Bonini [EMAIL PROTECTED] To: PHP Lists [EMAIL PROTECTED] Sent: Tuesday, February 18, 2003 12:45 AM Subject: [PHP] Counter has gremlins I have this basic counter: ?php $counterFile = ./counter.txt; function displayCounter

[PHP] counter question

2003-02-13 Thread electroteque
hi guys i am trying to increment a counter echoed out to the screen to be used for flash for ($i=0; $i 10; $i++) { //$string = $i; echo varText=$i; flush(); ob_flush(); sleep(1); } i cant seem to get each one out at a time , it will go through it then output at the end ?? -- PHP

Re: [PHP] counter question

2003-02-13 Thread Marek Kilimajer
You might still have a buffer at apache or system level, you can try to output spaces or coments, but I'm not sure something like this is possible in flash electroteque wrote: hi guys i am trying to increment a counter echoed out to the screen to be used for flash for ($i=0; $i 10; $i++) {

RE: [PHP] counter question

2003-02-13 Thread Dan Rossi
To: electroteque Cc: [EMAIL PROTECTED] Subject: Re: [PHP] counter question You might still have a buffer at apache or system level, you can try to output spaces or coments, but I'm not sure something like this is possible in flash electroteque wrote: hi guys i am trying to increment a counter echoed out

Re: [PHP] counter question

2003-02-13 Thread Jason Wong
On Thursday 13 February 2003 20:23, Dan Rossi wrote: i mean can u output the counter to the screen with php ? like 1 wait a few seconds 2 wait a few more seconds 3 etc .., atm it will go through the loop first then output In theory yes. But it depends on your webserver. Search the archives.

Re: [PHP] counter question

2003-02-13 Thread electroteque
ahuh Jason Wong [EMAIL PROTECTED] wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... On Thursday 13 February 2003 20:23, Dan Rossi wrote: i mean can u output the counter to the screen with php ? like 1 wait a few seconds 2 wait a few more seconds 3 etc .., atm it will go through

[PHP] counter freezes whole site!

2003-02-05 Thread Pag
Hi, I am having a serious problem on my site. It was working fine until a day ago, when it simply freezes. After i made a few checks i realized it loops on this code. I tried everything but i cant understand why and i am going crazy trying to figure it out! This code is supposed to write a

RE: [PHP] counter freezes whole site!

2003-02-05 Thread John W. Holmes
This code is supposed to write a 24h cookie at first visit, and then checks for it at every refresh, if the cookie doesnt exist, it increases a counter on the DB. Simple, right? Then why did it stop working out of the blue? It loops on the refresh, keeps thinking the cookie is not

Re: [PHP] counter problem

2003-01-05 Thread Anthony Ritter
Hi Mike, I tried the first script you posted on the NG. This is what happens when I copy and paste your script: The formbox appears. I insert a number. I click submit. The number reverts back to 0. The URL script that you sent me works fine. I'm using MS Win 98/ Apache / PHP 4 Please advise

[PHP] counter problem

2003-01-04 Thread Anthony Ritter
The following script is found in Matt Zandstra's book on PHP (Sams) on page 160. He's explaining forms with PHP and has hard coded a value - 42. He also is explaining a hidden fleld where the user can submit the number and each time the user hits submit in the formbox, the counter will register

Re: [PHP] counter problem

2003-01-04 Thread Michael J. Pawlowsky
Use this... enjoy ?php $numtoguess=42; if (isset($_POST['num_tries'])) $num_tries = $_POST['num_tries'] + 1; $message=; if(!isset($_POST['guess'])) $message=Welcome to the guessing machine; elseif ($_POST['guess'] $numtoguess) $message=Your guess was too low.;

Re: [PHP] counter problem

2003-01-04 Thread Michael J. Pawlowsky
This also works with the ternary operator... I don't think it likes the ++ because it doesn't know the type yet. ?php $numtoguess=42; $num_tries = isset($_POST['num_tries'])?$_POST['num_tries']+1:0; $message=; if(!isset($_POST['guess'])) $message=Welcome to the guessing machine;

Re: [PHP] counter problem

2003-01-04 Thread Anthony Ritter
Michael J. Pawlowsky wrote in message: This also works with the ternary operator... . No dice Michael. I treid both your scripts. The formbox comes up. I enter a number. I hit submit. The box clears out the entered number without any

Re: [PHP] counter problem

2003-01-04 Thread Michael J. Pawlowsky
I won't keep it up long... but go here... you will see it works... http://rc.mikeathome.net:8080/test/index.php *** REPLY SEPARATOR *** On 04/01/2003 at 7:17 PM Anthony Ritter wrote: Michael J. Pawlowsky wrote in message: This also works with the ternary operator...

[PHP] Counter ?

2002-04-26 Thread CMS
I am looking for a php counter, that can do this: ___ Total Visits: 8,585,230 Visits Today: 2,521 Today Date: Friday Jan 1, 2002 __ And the kicker, to have the ability to put this counter, on any page, to have it count that page sperate Thanks- Richard -- PHP General Mailing List (http

Re: [PHP] Counter ?

2002-04-26 Thread Richard Emery
] Counter ? I am looking for a php counter, that can do this: ___ Total Visits: 8,585,230 Visits Today: 2,521 Today Date: Friday Jan 1, 2002 __ And the kicker, to have the ability to put this counter, on any page, to have it count that page sperate Thanks- Richard -- PHP General Mailing

Re: [PHP] counter for HIGH traffic site

2002-04-08 Thread Jim Lucas [php]
: Saturday, April 06, 2002 11:57 PM Subject: [PHP] counter for HIGH traffic site I'm needing counter for site that receives 60 to 80 hits a minute. Many I have tried cause excessive server load and need to be deactivated or they lose data and return to zero without warning. All tried so far have

Re: Re: [PHP] counter for HIGH traffic site

2002-04-08 Thread Adam Voigt
PROTECTED] To: php-general-list [EMAIL PROTECTED] Sent: Saturday, April 06, 2002 11:57 PM Subject: [PHP] counter for HIGH traffic site I'm needing counter for site that receives 60 to 80 hits a minute. Many I have tried cause excessive server load and need to be deactivated or they lose data

Re: [PHP] counter for HIGH traffic site

2002-04-08 Thread heinisch
- From: Craig Westerman [EMAIL PROTECTED] To: php-general-list [EMAIL PROTECTED] Sent: Saturday, April 06, 2002 11:57 PM Subject: [PHP] counter for HIGH traffic site I'm needing counter for site that receives 60 to 80 hits a minute. Many I have tried cause excessive server load

RE: [PHP] counter for HIGH traffic site

2002-04-08 Thread SHEETS,JASON (Non-HP-Boise,ex1)
clients loading pages. Jason -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]] Sent: Monday, April 08, 2002 12:56 PM To: [EMAIL PROTECTED] Subject: Re: [PHP] counter for HIGH traffic site If it should be fast, avoid using mysql, just write a file with your number

RE: [PHP] counter for HIGH traffic site

2002-04-08 Thread Matthew Walker
[mailto:[EMAIL PROTECTED]] Sent: Saturday, April 06, 2002 11:58 PM To: php-general-list Subject: [PHP] counter for HIGH traffic site I'm needing counter for site that receives 60 to 80 hits a minute. Many I have tried cause excessive server load and need to be deactivated or they lose data and return

RE: [PHP] counter for HIGH traffic site

2002-04-08 Thread olinux
serious thought into how you are going to handle multiple clients loading pages. Jason -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]] Sent: Monday, April 08, 2002 12:56 PM To: [EMAIL PROTECTED] Subject: Re: [PHP] counter for HIGH traffic site

RE: [PHP] counter for HIGH traffic site

2002-04-08 Thread Miguel Cruz
On Mon, 8 Apr 2002, Matthew Walker wrote: You definitely want to use MySQL for this. Ignore all those people who recommended text file DBs. They are /SLOW/. MySQL is very very fast. I'll echo this. MySQL is hyperoptimized for this sort of transaction. It already has the databases open so that

[PHP] counter for HIGH traffic site

2002-04-06 Thread Craig Westerman
I'm needing counter for site that receives 60 to 80 hits a minute. Many I have tried cause excessive server load and need to be deactivated or they lose data and return to zero without warning. All tried so far have been written in Perl. Anyone here know of a PHP counter that would handle HIGH

[PHP] Counter

2001-09-25 Thread Mark Lo
Hi, I would like to know how to write a web page counter in PHP or Javascript. Thank You Mark Lo -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail:

RE: [PHP] Counter

2001-09-25 Thread Jon Haworth
: 25 September 2001 16:50 To: php general Subject: [PHP] Counter Hi, I would like to know how to write a web page counter in PHP or Javascript. Thank You Mark Lo -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail

[PHP] php-counter

2001-08-22 Thread Gert Mellak
hi! do you know an easy-to-use-php-counter, which uses mysql to store the data? gert -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]

Re: [PHP] php-counter

2001-08-22 Thread John Meyer
At 05:49 PM 8/22/01 +0200, you wrote: hi! do you know an easy-to-use-php-counter, which uses mysql to store the data? gert Not off hand, but I could probably program one within the day. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED

Re: [PHP] php-counter

2001-08-22 Thread Sheridan Saint-Michel
] To: [EMAIL PROTECTED] Sent: Wednesday, August 22, 2001 10:49 AM Subject: [PHP] php-counter hi! do you know an easy-to-use-php-counter, which uses mysql to store the data? gert -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional

Re: [PHP] php-counter

2001-08-22 Thread Andrey Hristov
[EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Wednesday, August 22, 2001 6:49 PM Subject: [PHP] php-counter hi! do you know an easy-to-use-php-counter, which uses mysql to store the data? gert -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED

[PHP] Re: php-counter

2001-08-22 Thread Raphael Pirker
http://php.resourceindex.com/Complete_Scripts/Access_Counters/ -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]

[PHP] counter using PHP or Javascript?

2001-07-11 Thread Zhu George-CZZ010
Hi, Is there a way to create a counter to count the number of accesses for a apecific page using PHP or Javascript? Thanks. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list

RE: [PHP] counter using PHP or Javascript?

2001-07-11 Thread scott [gts]
] Subject: [PHP] counter using PHP or Javascript? Hi, Is there a way to create a counter to count the number of accesses for a apecific page using PHP or Javascript? Thanks. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED

RE: [PHP] counter using PHP or Javascript?

2001-07-11 Thread Chadwick, Russell
http://www.devshed.com/ClipScripts/results/l_2/c_6/ -Original Message- From: Zhu George-CZZ010 [mailto:[EMAIL PROTECTED]] Sent: Wednesday, July 11, 2001 9:42 AM To: [EMAIL PROTECTED] Subject: [PHP] counter using PHP or Javascript? Hi, Is there a way to create a counter to count

[PHP] counter reseting help!

2001-04-14 Thread McShen
hi I am writing a small counter for my site. But i am not sure how to reset the counter every 24h. How should i do it? any suggestions would be much appreaciated! -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail:

Re: [PHP] counter reseting help!

2001-04-14 Thread Plutarck
How are you saving the current counter amount? For instance if it's in a database, add a date field. Check to see if the date is more than 24 hours old before displaying the current counter. If it is then update the database and make the counter number 0. If it's not older than 24 hours, just

RE: [PHP] Counter Help

2001-02-23 Thread Navid Yar
Message- From: Boaz Yahav [mailto:[EMAIL PROTECTED]] Sent: Friday, February 23, 2001 12:50 AM To: '[EMAIL PROTECTED]'; [EMAIL PROTECTED] Subject: RE: [PHP] Counter Help WeberDev will fix it ASAP if you tell it the number of the example :) Sincerely berber Visit http://www.weberdev.com

RE: [PHP] Counter Help

2001-02-23 Thread Navid Yar
Thank you very much :) -Original Message- From: Boaz Yahav [mailto:[EMAIL PROTECTED]] Sent: Friday, February 23, 2001 4:55 AM To: '[EMAIL PROTECTED]'; [EMAIL PROTECTED] Subject: RE: [PHP] Counter Help Fixed. Sincerely berber Visit http://www.weberdev.com Today!!! To see where

RE: [PHP] Counter Help

2001-02-23 Thread PHPBeginner.com
-Original Message- From: Navid Yar [mailto:[EMAIL PROTECTED]] Sent: Friday, February 23, 2001 9:11 AM To: PHP (E-mail) Subject: [PHP] Counter Help Can someone help me with this script? It is an example from weberdev.com. I ran it and it gave me the following error... -- Warning: Use

RE: [PHP] Counter Help

2001-02-23 Thread PHPBeginner.com
] www.phpbeginner.com -Original Message- From: Simon Garner [mailto:[EMAIL PROTECTED]] Sent: Friday, February 23, 2001 1:32 PM To: [EMAIL PROTECTED] Subject: Re: [PHP] Counter Help From: "Chris Lee" [EMAIL PROTECTED] change $row[count] to $row['count'] it thinks the work [count] is

RE: [PHP] Counter Help

2001-02-23 Thread PHPBeginner.com
24, 2001 4:26 PM To: 'PHPBeginner.com'; 'PHP (E-mail)' Subject: RE: [PHP] Counter Help Sounds good to me, I should, and will, always keep that in mind. Thanks for the tips. Also I want to say PHPBeginner.com is starting off very well, keep up the good work. I've been watching over it to see when

[PHP] Counter Help

2001-02-22 Thread Navid Yar
Can someone help me with this script? It is an example from weberdev.com. I ran it and it gave me the following error... -- Warning: Use of undefined constant count - assumed 'count' in c:\windows\desktop\localhost\examples\counter\counter1.php on line 27 25 The number 25 is the correct number

Re: [PHP] Counter Help

2001-02-22 Thread Chris Lee
change $row[count] to $row['count'] it thinks the work [count] is some kind of conastant, it doesnt know you mean (string) 'count' -- Chris Lee Mediawaveonline.com ph. 250.377.1095 ph. 250.376.2690 fx. 250.554.1120 [EMAIL PROTECTED] ""Navid Yar"" [EMAIL PROTECTED] wrote in

Re: [PHP] Counter Help

2001-02-22 Thread Simon Garner
From: "Chris Lee" [EMAIL PROTECTED] change $row[count] to $row['count'] it thinks the work [count] is some kind of conastant, it doesnt know you mean (string) 'count' rant I have noticed a lot of people do not put quotes on their array indexes (e.g. VBulletin is a prime offender) -

RE: [PHP] Counter Help

2001-02-22 Thread Navid Yar
your help and for Chris' help. Navid -Original Message- From: Simon Garner [mailto:[EMAIL PROTECTED]] Sent: Thursday, February 22, 2001 10:32 PM To: [EMAIL PROTECTED] Subject: Re: [PHP] Counter Help From: "Chris Lee" [EMAIL PROTECTED] change $row[count] to $row['count'] it th

RE: [PHP] Counter Help

2001-02-22 Thread Boaz Yahav
To: [EMAIL PROTECTED] Subject: RE: [PHP] Counter Help Chris, It worked! Thanks so much! Weberdev needs to fix it too. Navid -Original Message- From: Chris Lee [mailto:[EMAIL PROTECTED]] Sent: Thursday, February 22, 2001 4:46 PM To: [EMAIL PROTECTED] Subject: Re: [PHP] Counter Help change