PHP Classes

Weather

Recommend this page to a friend!

      PHP Weather Forecast API  >  All threads  >  Weather  >  (Un) Subscribe thread alerts  
Subject:Weather
Summary:Not Working
Messages:9
Author:Frankie P
Date:2013-08-01 19:36:42
Update:2013-08-05 18:44:04
 

  1. Weather   Reply   Report abuse  
Picture of Frankie P Frankie P - 2013-08-01 19:36:42
Has anyone got this to work? I registered and obtained an API Code. Next I added my code, but still can not get it to do anything. Any help would be appreciated

  2. Re: Weather   Reply   Report abuse  
Picture of Giovanni Ramos Giovanni Ramos - 2013-08-02 19:51:01 - In reply to message 1 from Frankie P
Here for me is working normally.

You have to create and use your key on this page:
developer.worldweatheronline.com/me ...

  3. Re: Weather   Reply   Report abuse  
Picture of Frankie P Frankie P - 2013-08-02 20:37:04 - In reply to message 2 from Giovanni Ramos
I did get a key and enter it but only get a blank page when I run the script.

  4. Re: Weather   Reply   Report abuse  
Picture of Frankie P Frankie P - 2013-08-02 21:08:30 - In reply to message 2 from Giovanni Ramos
This is the error I get:

[01-Aug-2013 10:11:00] PHP Parse error: syntax error, unexpected T_PAAMAYIM_NEKUDOTAYIM in /home2/blah/blah/weather-forecast-2013-07-26/index.php on line 35

I don't know what this means.

  5. Re: Weather   Reply   Report abuse  
Picture of Giovanni Ramos Giovanni Ramos - 2013-08-05 13:19:16 - In reply to message 4 from Frankie P
Hello Frankie,

sorry for the delay in responding and thank you for reporting.

Let me know what version your Apache and PHP.

  6. Re: Weather   Reply   Report abuse  
Picture of Frankie P Frankie P - 2013-08-05 15:17:26 - In reply to message 5 from Giovanni Ramos
Hello again,

Apache - 2.2.25
PHP: 5.4.17

Thanks for your help.

  7. Re: Weather   Reply   Report abuse  
Picture of Frankie P Frankie P - 2013-08-05 18:15:59 - In reply to message 5 from Giovanni Ramos
Hi Giovanni,

I copied my code to another server which is using PHP 5.4.10 and Apache 2.2.23 and everything works great. Then I went back to my original server and changed the PHP version to 5.3.27 and it now works. So it seems the problems is that it will not work with newest versions of PHP.

Frankie

  8. Re: Weather   Reply   Report abuse  
Picture of Giovanni Ramos Giovanni Ramos - 2013-08-05 18:31:53 - In reply to message 6 from Frankie P
Hello, I could not reproduce your error.

Try testing using XAMPP portable:
apachefriends.org/pt_br/xampp-windo ...

  9. Re: Weather   Reply   Report abuse  
Picture of Frankie P Frankie P - 2013-08-05 18:44:05 - In reply to message 8 from Giovanni Ramos
I don't use Winders. I use a Macintosh and I did test it with MAMP and it works correctly. It
seems it works with PHP 5.4.10 and 5.3.27 but not with 5.4.17. Thanks for you help sorting this out.