Re: Using DB to cache METARs ?
Brought to you by:
iridium
|
From: Phil P. <phi...@sw...> - 2004-01-05 23:01:44
|
Actually that was my first thought: bad URLs.
So I checked the HTML source.
- All Good
So I checked the path/subdirs on the web server.
- All Good
So I went to the subdir where CVS had dumped phpweather on my local hard
drive, and tried to open an icon file.... Specifically icons/temphigh.png
My preferred graphic viewer (irfanview 3.85) replies with
{filename}: PNG Decode error !
This is not a valid PNG File !
Also neither FireBird 0.7+ nor MSIE 6 are able to display that local file.
Loading up the icons/ subdir from the previous release (2.1.2) works
perfectly fine without changing any code.
Also: downloading the 2.2.0 release (ZIP file) also gives me complete
working PNGs under icons/
Basically (and I've CVS'd them down several times now) the icons/* files
I'm receiving from CVS (I'm using WinCVS 1.3.13.2) are arriving
corrupted and thereby not valid PNG images. All of them. Every time.
I've tried with and without TCP Compression, and WinCVS is always
dumping into a new empty directory, so there's no mystery file-collision
weirdness going on either.
So, either
(a) the PNG icons/ in CVS are corrupted
(b) WinCVS is corrupting them icons/ as they download
Anyone else out there want to CVS down the latest PHPWeather (preferably
using Windows and not WinCVS) and let us know if the icons arrive safely?
Thanks,
Phil P
Martin Geisler wrote:
> Phil Pierotti <phi...@sw...> writes:
>
>
>>Just for the sake of completeness, I downloaded the icons again
>>through CVS, still corrupted.
>
>
> The icons themselves look fine to me --- normal PNG images. Are you
> sure it's not just the generated URL that's wrong, and therefore the
> icons look broken in your browser?
>
> Use icons_path to indicate the path that will be inserted infront of
> the image names, the standard setting of
>
> $this->properties['icons_path'] = 'icons/';
>
> only works for index.php in the root PHP Weather folder because the
> icons are put in the icons subdirectory.
>
|