From owner-freebsd-questions@FreeBSD.ORG Fri Feb 1 04:49:12 2008 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id C21DC16A420 for ; Fri, 1 Feb 2008 04:49:12 +0000 (UTC) (envelope-from "") Received: from mx01.edm.ab.smart-serv.net (mail.smart-serv.net [208.68.18.197]) by mx1.freebsd.org (Postfix) with ESMTP id 82A5013C442 for ; Fri, 1 Feb 2008 04:49:12 +0000 (UTC) (envelope-from "") Received: from localhost (ldap.smart-serv.net [208.68.18.197]) by mx01.edm.ab.smart-serv.net (Postfix) with SMTP id E95732E5C5B for ; Thu, 31 Jan 2008 21:25:46 -0700 (MST) Received: by mx01.edm.ab.smart-serv.net (Postfix, from userid 125) id 690492E5C58; Thu, 31 Jan 2008 21:25:02 -0700 (MST) Received: from localhost (ldap.smart-serv.net [208.68.18.197]) by mx01.edm.ab.smart-serv.net (Postfix) with SMTP id E9AB62E5C5A for ; Thu, 31 Jan 2008 21:18:27 -0700 (MST) Received: from [192.168.0.250] (S0106000d87073d15.nb.shawcable.net [70.74.68.215]) by mx01.edm.ab.smart-serv.net (Postfix) with ESMTP id 1F2712E5C58; Thu, 31 Jan 2008 21:18:27 -0700 (MST) Message-ID: <47A29D91.5070305@stormy.smart-serv.net> Date: Thu, 31 Jan 2008 20:18:25 -0800 From: Jeremy Johnston User-Agent: Thunderbird 2.0.0.9 (Windows/20071031) MIME-Version: 1.0 To: Gary Kline References: <20080201015054.GA1731@thought.org> In-Reply-To: <20080201015054.GA1731@thought.org> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-DSPAM-Result: Innocent X-DSPAM-Processed: Thu Jan 31 21:18:27 2008 X-DSPAM-Confidence: 1.0000 X-DSPAM-Improbability: 1 in 98689407 chance of being spam X-DSPAM-Probability: 0.0023 X-DSPAM-Signature: 47a29d9380152129913721 X-DSPAM-Factors: 27, but, 0.40000, just, 0.40000, compilr, 0.40000, Received*serv.net, 0.40000, From*serv.net>, 0.40000, Message-ID*<47A29D91.5070305, 0.40000, or, 0.40000, from, 0.40000, (, 0.40000, of, 0.40000, of, 0.40000, Received*ESMTP, 0.40000, $dir="countdir/", 0.40000, }, 0.40000, ), 0.40000, Received*31, 0.40000, any, 0.40000, any, 0.40000, To*Kline, 0.40000, Date*0800, 0.40000, i'm, 0.40000, User-Agent*Thunderbird, 0.40000, would, 0.40000, To*thought.org>, 0.40000, Received*[192.168.0.250], 0.40000, Return-Path*, 0.40000, Received*localhost, 0.40000, Message-ID*<47A29D91.5070305, 0.40000, or, 0.40000, from, 0.40000, (, 0.40000, of, 0.40000, of, 0.40000, Received*ESMTP, 0.40000, $dir="countdir/", 0.40000, Received*(Postfix, 0.40000, }, 0.40000, ), 0.40000, Received*31, 0.40000, Received*31, 0.40000, any, 0.40000, any, 0.40000, Return-Path* List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 01 Feb 2008 04:49:12 -0000 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 > > > >