From owner-freebsd-questions@FreeBSD.ORG Fri Feb 1 01:51:04 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 B9B8016A417 for ; Fri, 1 Feb 2008 01:51:04 +0000 (UTC) (envelope-from kline@thought.org) Received: from aristotle.thought.org (dsl231-043-140.sea1.dsl.speakeasy.net [216.231.43.140]) by mx1.freebsd.org (Postfix) with ESMTP id 688E413C43E for ; Fri, 1 Feb 2008 01:51:04 +0000 (UTC) (envelope-from kline@thought.org) Received: from thought.org (tao.thought.org [10.47.0.250]) (authenticated bits=0) by aristotle.thought.org (8.14.2/8.14.2) with ESMTP id m111ov6H020828 for ; Thu, 31 Jan 2008 17:50:57 -0800 (PST) (envelope-from kline@thought.org) Received: by thought.org (nbSMTP-1.00) for uid 1002 kline@thought.org; Thu, 31 Jan 2008 17:50:57 -0800 (PST) Date: Thu, 31 Jan 2008 17:50:57 -0800 From: Gary Kline To: FreeBSD Mailing List Message-ID: <20080201015054.GA1731@thought.org> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.4.2.3i X-Organization: Thought Unlimited. Public service Unix since 1986. X-Of_Interest: With 21 of service to the Unix community. X-Spam-Status: No, score=-4.4 required=5.0 tests=ALL_TRUSTED,BAYES_00 autolearn=ham version=3.2.3 X-Spam-Checker-Version: SpamAssassin 3.2.3 (2007-08-08) on aristotle.thought.org Cc: Subject: slightly OT. php5 breaks my hit-count.... X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 01 Feb 2008 01:51:04 -0000 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 -- Gary Kline kline@thought.org www.thought.org Public Service Unix http://jottings.thought.org http://transfinite.thought.org