Re: Creating a simple hitcounter for PHP web pages. (saves to files)
- From: Michael Fesser <netizen@xxxxxx>
- Date: Sat, 31 May 2008 17:08:30 +0200
..oO(tony19760619@xxxxxxxxx)
This code will still throw at least three notices. You should fix your
error_reporting, as already suggested in alt.php.
My PHP environment is set to ignore Notices.
Really bad idea. No serious developer does this.
I tested the code, and it does work.
Notices are caused by bugs. Not severe bugs, but still bugs. And
sometimes a notice might even indicate a really big problem. Without
them you might have a hard time to find the reason for some problems.
In short: Code that throws notices is bad code.
So if you want to use it...you can.
I don't need hit counters.
I will leave the fixing up of the notices..and the other stuff
mentioned in "alt.php" to someone else.
You're offering buggy and unreliable code, which is why I responded.
If you feel up to it, you can do it..then post it back here if you
like :)
Why should I? No one needs hit counters except as a programming
exercise. You should learn how to do things properly right from the
beginning, which means to fix E_NOTICE errors and some other things.
Micha
.
- Follow-Ups:
- Re: Creating a simple hitcounter for PHP web pages. (saves to files)
- From: tony19760619
- Re: Creating a simple hitcounter for PHP web pages. (saves to files)
- References:
- Creating a simple hitcounter for PHP web pages. (saves to files)
- From: tony19760619
- Re: Creating a simple hitcounter for PHP web pages. (saves to files)
- From: tony19760619
- Re: Creating a simple hitcounter for PHP web pages. (saves to files)
- From: Michael Fesser
- Re: Creating a simple hitcounter for PHP web pages. (saves to files)
- From: tony19760619
- Creating a simple hitcounter for PHP web pages. (saves to files)
- Prev by Date: Re: preg_match_all
- Next by Date: Re: How to test that an array is 'indexed' vs 'associative'
- Previous by thread: Re: Creating a simple hitcounter for PHP web pages. (saves to files)
- Next by thread: Re: Creating a simple hitcounter for PHP web pages. (saves to files)
- Index(es):
Relevant Pages
|