From owner-freebsd-questions@FreeBSD.ORG Thu Mar 24 19:35:49 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 81CCE106566B for ; Thu, 24 Mar 2011 19:35:49 +0000 (UTC) (envelope-from bmettee@pchotshots.com) Received: from mail.pchotshots.com (mail.pchotshots.com [12.172.123.237]) by mx1.freebsd.org (Postfix) with ESMTP id 194C78FC12 for ; Thu, 24 Mar 2011 19:35:48 +0000 (UTC) Received: (qmail 70221 invoked by uid 89); 24 Mar 2011 19:09:07 -0000 Received: from unknown (HELO ?12.172.123.228?) (bmettee@pchotshots.com@12.172.123.228) by mail.pchotshots.com with ESMTPA; 24 Mar 2011 19:09:07 -0000 Message-ID: <4D8B96D3.6060003@pchotshots.com> Date: Thu, 24 Mar 2011 15:09:07 -0400 From: Brad Mettee User-Agent: Thunderbird 2.0.0.24 (Windows/20100228) MIME-Version: 1.0 To: Gary Kline References: <20110323164504.GA25317@thought.org> <20110324185340.GD15209@thought.org> In-Reply-To: <20110324185340.GD15209@thought.org> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit 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 19:35:49 -0000 Gary Kline wrote: > 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 It looks like it's not interpreting the php code start somehow. Can you show the lines immediately above, going up to the "Last Modified" script? I can also see a "?>" further down the webpage. It might be a simple case of mis-matched start/stop tags. -- Brad Mettee PC HotShots, Inc. Baltimore, MD (410) 426-7617 -> Let us bring out the **Power** of your PCs. <- -> Custom Business Software Solutions since 1991 <- Visit us for information about our company.