Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 24 Mar 2011 11:53:40 -0700
From:      Gary Kline <kline@thought.org>
To:        Ryan Coleman <editor@d3photography.com>
Cc:        FreeBSD Mailing List <freebsd-questions@FreeBSD.ORG>
Subject:   Re: why does this simple counter fail?
Message-ID:  <20110324185340.GD15209@thought.org>
In-Reply-To: <B322245C-7251-45B7-A29A-D9DAC9F54AAC@d3photography.com>
References:  <20110323164504.GA25317@thought.org> <B322245C-7251-45B7-A29A-D9DAC9F54AAC@d3photography.com>

next in thread | previous in thread | raw e-mail | index | archive | help
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





Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20110324185340.GD15209>