ich hab ein problem mit einem script, dass plötzlich nicht mehr funktioniert.
es wird das wetter aus den google apis mit file_get_contents ausgelesen.
hat bis jetzt immer funktioniert und auf einem anderen server läuft es auch noch tadellos.
fehlermeldung sieht zb. so aus:
Code: Alles auswählen
Warning: file_get_contents(http://www.google.com/ig/api?weather=,,,30324997,-9413067&hl=de) [function.file-get-contents]: failed to open stream: HTTP request failed! HTTP/1.0 503 Service Unavailable in /www/htdocs/....php on line 225
Fatal error: Call to a member function attributes() on a non-object in /www/htdocs/....php on line 236
trotzdem die frage: an was ist das jetzt gelegen? an meiner seite oder an google?
kann ich eine fehlermaledung mit sinngemäss if file_get_contents = false unterdrücken?