I finally use another way to fetch the GoogleMap URL:
http://www.bin-co.com/php/scripts/load/

It works fine now! :)

On 6 nov, 12:33, Flashball <[EMAIL PROTECTED]> wrote:
> - my host authorize the file_get_content / allow_url_fopen is set to
> onhttp://www.2sudmur.com/phpinfo.php
> - I add some trace in the "fetchURL" method on line 1343 of the
> GoogleMapAPI.class.php
>   --> the code is: $test = file_get_contents($url);
>   --> on the server:
> $url =http://maps.google.com/maps/geo?&q=1%2C%20avenue%20Foch%20%2075017%20...
> $test = 620,0,0,0
>   --> on local developpement:
> same $url, $test = 200,6,43.299513,5.401238
>
> so this method returns "620,0,0,0" on the server and that seems to be
> (part of) the problem...
>
> On 6 nov, 12:05, Flashball <[EMAIL PROTECTED]> wrote:
>
> > Many thanks for your response!
>
> > I don't understand where you get the PHP errors, I can't see it when I
> > display the HTML code.
> > The other very curious thing is that the map had worked few times
> > after your responses without any changes of mine! And now, it's not
> > working again...
> > Last information, the hosting society of this site allows the
> > "file_get_contents" instruction.
>
> > I thank you if you have any ideas of what other thing I can do.
>
> > On 3 nov, 13:03, "warden [Andrew Leach - Maps API Guru]"
>
> > <[EMAIL PROTECTED]> wrote:
> > > On Nov 3, 11:25 am, Flashball <[EMAIL PROTECTED]> wrote:
>
> > > > Hello,
>
> > > > I'm using the "GoogleMapAPI.class.php" to integrate Google Maps in a
> > > > website where the administrator can dynamicaly define new points on
> > > > the map: everything works fine in localhost / developpement mode
> > > > but...
>
> > > > I don't understand where is the problem when i put the code on the
> > > > server: I've got the google maps tools, but the map is not loaded.
>
> > > The errors flagged indicate that there is a problem with your server
> > > setup:
> > > ---
> > > Warning: file_get_contents(http://maps.google.com/maps/geo?&q=1%2C
> > > %20avenue%20Foch%20%2075017%20PARIS
> > > %20FRANCE&output=csv&key=ABQIAAAAaxZ7qJ_EnNcj6LJxlOT2MxRo6PE19qUadpmC3GSqevrNrVu0CRRPVUX40e_0XbTZ7qe3ZqFuJCni9w)
> > > [function.file-get-contents]: failed to open stream: HTTP request
> > > failed! HTTP/1.0 403 Forbidden in /homez.34/sudmur/lib/
> > > GoogleMapAPI.class.php on line 1343
>
> > > Notice: Undefined variable: _coords in /homez.34/sudmur/lib/
> > > GoogleMapAPI.class.php on line 1331
> > > ---
> > > Your server doesn't allow file_get_contents on external URLs -- which
> > > means that the fopen() wrappers need to be 
> > > enabled.http://us2.php.net/manual/en/function.file-get-contents.php
>
> > > 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