Well, the problem might be view as an ethical & philosophical one:

How much are you prepared to lie to achieve a certain goal?

Many properties/features with software are not what they
really look like anyway.

Software just pretends to work while it actually
does not work at all. It only stick together because it
has a high degree of fault tolerance or simply because it
contains so much data and code that particular things
that does not work is unlikely to be encounter (the big
grow principle; survival; by gig numbers).

Think about it; how can anybody check this anyway? They can't!
Some people can't even sketch a proper schema on how to connect
1 light bulb with 1 metal wire and 1 battery in order to make
the light bulb lit up. There concept of the physical world is
so screwed up that they even believes in animated sprits (gods).

So why would you bother to put to much development energy
into a perfect counter which you can fake anyway to give
about the right answer?

But as I said, this is a ethical view not a functional.

        //Anders

> -----Original Message-----
> From: Radovan Radic [mailto:[EMAIL PROTECTED]]
> Sent: Wednesday, January 29, 2003 5:51 PM
> To: [EMAIL PROTECTED]
> Subject: Re: [PHP-WIN] Re: Counter problems!
> 
> 
> So, is there some "perfect" counter? Or there is some simple solution?
> I tried this (index.php)
> <?
> session_start();
> if (!isset($QUERY_STRING))
>   header("Location: index.php".SID);
> else
> {
>   include("counter.php");
> }
> ?>
> 
> This is helping when page is refreshed, but when someone types location in
> the address bar:
> http://mysite.com/index.php counter gets +1! Or this is normal behaviour?
> Someone opened door again...
> 
> "J.Veenhuijsen" <[EMAIL PROTECTED]> wrote in message
> [EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
> > You've got a point there!!!!!!!!!!!
> >
> > Jochem
> >
> > B.A.T. Svensson wrote:
> > > There are some potential pitfalls involving:
> > >
> > > CASE 1: Multi user systems:
> > > You will see the same IP for all of the users on that system.
> > >
> > > CASE 2: Firewalls
> > > You might only see the firewalls IP# for each and every user behind it.
> > >
> > > CASE 3: Dynamically assigned IP#
> > > IP# might dynamically be assigned to different user at different times
> points
> > >
> > >
> > >
> > >
> > >>-----Original Message-----
> > >>From: J.Veenhuijsen [mailto:[EMAIL PROTECTED]]
> > >>Sent: Wednesday, January 29, 2003 2:35 PM
> > >>To: [EMAIL PROTECTED]
> > >>Subject: [PHP-WIN] Re: Counter problems!
> > >>
> > >>
> > >>You could check the IP adress of the visitor.
> > >>If it has not changed the the visitor is the same.
> > >>Last IP adress in the counter file?
> > >>
> > >>
> > >>Jochem
> > >>
> > >>Radovan Radic wrote:
> > >>
> > >>>Hi
> > >>>
> > >>>I want to add simple counter on my index.php page.
> > >>>
> > >>>counter.php:
> > >>><?
> > >>>if (!session_is_registered("counter"))
> > >>>{
> > >>>  $fp=fopen("counter.txt","r");
> > >>>  $counter=fread($fp);
> > >>>  fclose($fp);
> > >>>  $counter++;
> > >>>  session_register("counter");
> > >>>}
> > >>>print "Visited: $counter<BR>";
> > >>>?>
> > >>>
> > >>>index.php
> > >>><?
> > >>>session_start();
> > >>>print "Simple page<BR>";
> > >>>include("counter.php");
> > >>>?>
> > >>>
> > >>>This should work, but when someone refreshes index.php page, counter is
> > >>>increased! How can i stop it?
> > >>>
> > >>>Thx,
> > >>>Radovan
> > >>>
> > >>>
> > >>
> > >>
> > >>--
> > >>PHP Windows Mailing List (http://www.php.net/)
> > >>To unsubscribe, visit: http://www.php.net/unsub.php
> > >>
> > >
> >
> 
> 
> 
> -- 
> PHP Windows Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
> 

-- 
PHP Windows Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to