From owner-freebsd-questions@FreeBSD.ORG Thu Mar 24 18:53:42 2011 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 68928106566C for ; Thu, 24 Mar 2011 18:53:42 +0000 (UTC) (envelope-from kline@thought.org) Received: from thought.org (plato.thought.org [209.180.213.209]) by mx1.freebsd.org (Postfix) with ESMTP id 3F4F38FC13 for ; Thu, 24 Mar 2011 18:53:41 +0000 (UTC) Received: by thought.org (Postfix, from userid 1001) id 7A610E8040D; Thu, 24 Mar 2011 11:53:40 -0700 (PDT) Date: Thu, 24 Mar 2011 11:53:40 -0700 From: Gary Kline To: Ryan Coleman Message-ID: <20110324185340.GD15209@thought.org> References: <20110323164504.GA25317@thought.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: X-Organization: Thought Unlimited. Public service Unix since 1986. X-Of_Interest: With 24 years of service to the Unix community. User-Agent: Mutt/1.5.20 (2009-06-14) Cc: FreeBSD Mailing List Subject: Re: why does this simple counter fail? 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: Thu, 24 Mar 2011 18:53:42 -0000 On Wed, Mar 23, 2011 at 11:47:16AM -0500, Ryan Coleman wrote: > Do you have an error for it? > > If not... add after the first error_reporting(9); > > And see what it reports. > > -- > Ryan > PHP dev. > save the bandwidth... Ok, i added the error_reporting line to both scripts. No change from the count.php, and the same output as prev from my script that tries to pick a random entry from some 70 quotes. here is what the randomquote.php scipt output onto the home page: Last updated: 17 February, 2011 echo "err-9 line below:\n"; $number-1){ // If ran out of quotes, start again! $num=0; } if (file_exists($directory.$quotecountfile)) { $nu = fopen ($directory.$quotecountfile, "w"); fputs($nu,$num); } else { die("Cant Find $quotecountfile"); } } ?> Note that i added the echo line just now. Having a quote isn't as meaningful as giving users the latest pagecount. That still fails without any errors. gary