[Tfug] PHP Question
George Cohn
gwcohn at simplybits.net
Sat Feb 10 22:00:42 MST 2007
Stephen Hooper wrote:
> I suck at PHP, but doesn't that test read the same as "C": if
> $currentWindDirection is not empty, and $currentWindSpeed is not empty
> then do all the below?
>
> So... is the script ending prematurely, or is it just ending because
> one of the variables you are testing against doesn't contain anything?
> Why don't you post your code snippet, instead of some example's code
> snippet?
>
I think you've already answered it. ;-)
The WindSpeed variable was empty. I tried having it echo the contents
to the screen and discovered that temperature and WindDirection had
values but WindSpeed does not.
Have to go back and look at how it's parsing it from the NOAA xml web page.
George Cohn
More information about the tfug
mailing list