Re: bug in 2.2.0 ?
Brought to you by:
iridium
|
From: Phil P. <phi...@sw...> - 2004-01-03 00:20:10
|
I printed it out, it's empty.
(ie enclosed in single quotes, prints out consecutive single quotes)
[ugh]
Yeah, the last 1.?? version (I have no idea which, it was a while ago) I
played with worked fine. 2.2 comes with TAF decoding, so I thought I'd
play with that. Unfortunately, either it's broken or I've not
uploaded/installed it correctly.
Thanks,
Phil P
KISS wrote:
> Morning Phil,
> quick dumb question, what have you got in $cc_temp ?
> For your else statement
> $cc = $cc_temp;
> Just to clear things up as to if/else statement for return of info. I am
> not personally using version 2.2.0 as I was happy with version 1.62 and
> have had no need to update, but have to start with the basics to help you.
>
> cheers and regards
> Gregg
> Cairns, Queensland
>
> ----- Original Message -----
> *From:* Phil Pierotti <mailto:phi...@sw...>
> *To:* php...@li...
> <mailto:php...@li...>
> *Sent:* Saturday, January 03, 2004 9:07 AM
> *Subject:* bug in 2.2.0 ?
>
> I've just downloaded 2.2.0
> Unpacked it on my web server
> Configured it through the configuration webpage
>
> HTTP to index.php
> Select country
> Select Airport/ICAO
> Click SUBMIT
>
> returns back to the default form - no METAR data displayed.
>
> Turned on Warnings as well as errors.
> No warnings/errors displayed.
>
> Ran the test program, no problem.
> Ran the 'speed test' program, no problem (though, obviously slow, as
> I'm
> not using a database).
>
> I added the following lines into the output, for debugging.
> (after echo output)
>
> echo "<br>Here's the RAW output data<br><pre>\n";
> print_r($data);
> echo "</pre>\n";
>
>
> NO data displayed.
>
> I added many and various 'debug comment' lines in odd places, appended
> to $output.
>
> It *always* and *for every country/ICAO* says "ICAO was invalid".
>
> if ($icao != '') {
> $output .= "<br>we got an ICAO<br>\n";
> $weather->set_icao($icao);
> /* icao was passed, we resolve country code */
> $cc_temp = $weather->get_country_code();
> if ($cc_temp === false) {
> /* turn icao off, it is not valid */
> $icao = '';
> $output .= "<br>ICAO was invalid<br>\n";
> } else {
> /* use resolved country code */
> $cc = $cc_temp;
> }
> }
>
> Thanks,
> Phil P
>
>
>
>
> -------------------------------------------------------
> This SF.net email is sponsored by: IBM Linux Tutorials.
> Become an expert in LINUX or just sharpen your skills. Sign up for
> IBM's
> Free Linux Tutorials. Learn everything from the bash shell to sys
> admin.
> Click now! http://ads.osdn.com/?ad_id=1278&alloc_id=3371&op=click
> <http://ads.osdn.com/?ad_id=1278&alloc_id=3371&op=click>
> _______________________________________________
> PHPWeather-devel mailing list
> PHP...@li...
> <mailto:PHP...@li...>
> https://lists.sourceforge.net/lists/listinfo/phpweather-devel
>
>
>
> ---
> Outgoing mail is certified Virus Free.
> Checked by AVG anti-virus system (http://www.grisoft.com).
> Version: 6.0.557 / Virus Database: 349 - Release Date: 30/12/2003
|