ok, so i added an error_log($url); in my code to dump out the URL to
the maps.google XML file that my website is receiving.  they are all
the same, here is an example that is then followed with errors in my
error log:

http://maps.google.com/maps/geo?q=buffalo&output=xml&key=ABQIAAAAXva5RhIe3EUH7hIP98sh4RTu2c_oPNm1xjcn0pbxbwD1PDCAhBTLHYYOSCg65a9QbpZVLTv3_Wv8Ww&oe=utf-8

below that is

[11-Apr-2009 17:09:21] PHP Warning:  simplexml_load_string() [<a
href='function.simplexml-load-string'>function.simplexml-load-string</
a>]: Entity: line 1: parser error : AttValue: &quot; or ' expected in /
home/iscrump/path/file.php on line 3479
[11-Apr-2009 17:09:21] PHP Warning:  simplexml_load_string() [<a
href='function.simplexml-load-string'>function.simplexml-load-string</
a>]: f0000&quot;&gt; &lt;table cellpadding=&quot;0&quot;
cellspacing=&quot;0&quot; border=&quot;
0&quot;&gt;&lt;tr&gt;&lt;td&gt;&lt;b&gt;&lt;font face= in /home/
iscrump/path/file.php on line 3479

now i changed the entities just for kicks just to see what'd it look
like:

f0000'> <table cellpadding='0' cellspacing='0'
border='0'><tr><td><b><font face= in /home/iscrump/path/file.php on
line 3479

line 3479 in my file is:
                        $response = simplexml_load_string($xml_contents);

where $xml_contents is:
                        //get the lat/lng
                        $test = "http://maps.google.com/maps/geo?q="; . urlencode
($temp_addy) .
"&output=xml&key=ABQIAAAAXva5RhIe3EUH7hIP98sh4RTu2c_oPNm1xjcn0pbxbwD1PDCAhBTLHYYOSCg65a9QbpZVLTv3_Wv8Ww&oe=utf-8";
                        error_log($test);
                        error_log("\n");
                        $xml_contents = file_get_contents($test);

so the response from maps.google is sending me bad ... something?  a
missing quote from a table row?  i don't understand why this is
intermittent.

thanks again for any thoughts.


On Apr 9, 7:24 pm, Andrew Leach <[email protected]> wrote:
> On Apr 9, 9:56 pm,meleader2<[email protected]> wrote:
>
> > Time zone offset: UTC - 5 hours. EST is 5 hours behind of Coordinated
> > Universal Time (UTC).  so ... 4am UTC?
>
> So that's Eastern Standard Time; I wasn't sure if it meant Eastern
> Summer Time and was an hour ahead. It means it's 5am in the UK, so I
> don't think I shall be logging on just to see a PHP error. You need to
> work out which file is being analysed in line 3477 of your PHP code
> and point a browser at it yourself. It should be XML; but I bet it
> isn't.
>
> Andrew
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Google Maps API" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to 
[email protected]
For more options, visit this group at 
http://groups.google.com/group/Google-Maps-API?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to