Date: Thu, 31 Jan 2008 20:18:25 -0800 From: Jeremy Johnston <jeremy@stormy.smart-serv.net> To: Gary Kline <kline@thought.org> Cc: freebsd-questions@freebsd.org Subject: Re: slightly OT. php5 breaks my hit-count.... Message-ID: <47A29D91.5070305@stormy.smart-serv.net> In-Reply-To: <20080201015054.GA1731@thought.org> References: <20080201015054.GA1731@thought.org>
next in thread | previous in thread | raw e-mail | index | archive | help
Hi Gary, I just tested this exact code on php 5.2.5 and I didn't receive any error. For further help with this you are welcome to email me privately as this is more of a php code problem :) Gary Kline wrote: > guys, > > i need some help from any of you who is current with php5. > in '05 i wrote myown hit counter in php4 using the "." operator > to write statements like: > > $dir="countdir/"; $filename= $file; > > if (! (file_exists( ( $dir.$filename) ))) > { > // the if fopen cannot open, echo "Error" and exit(1) > } > > this did work. with php5, however, i'm getting a "divivde by > zero" error on both lines. thebest thing, or easiest, would be > to compilr php4. but i'd like to know some better ways. > > anybody clue me in? > > thanks in advance, > > gary > > > >
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?47A29D91.5070305>