i am trying to connect this URL to get latitude, longitude of a state
but its throwing warning can u pls tell me what would be the reason
"Warning: file_get_contents(http://maps.google.com/maps/geo?&q=Dist ... HqrFcWo5vA) [function.file-get-contents]: failed to open stream: Permission denied in GoogleMapAPI.class.php on line 1343"
unable to fetch content from a URL
Moderator: General Moderators
Re: unable to fetch content from a URL
I would venture to guess that Google doesn't like people to take their data without permission:jaini wrote:i am trying to connect this URL to get latitude, longitude of a state
but its throwing warning can u pls tell me what would be the reason
"Warning: file_get_contents(http://maps.google.com/maps/geo?&q=Dist ... HqrFcWo5vA) [function.file-get-contents]: failed to open stream: Permission denied in GoogleMapAPI.class.php on line 1343"
"Permission denied in GoogleMapAPI.class.php"
Re: unable to fetch content from a URL
i registered my site url with google and i got API key also. i implemented the same on windows and its working fine. on linux server i am getting warning
- Kieran Huggins
- DevNet Master
- Posts: 3635
- Joined: Wed Dec 06, 2006 4:14 pm
- Location: Toronto, Canada
- Contact:
Re: unable to fetch content from a URL
they authenticate you by your url - make sure you have the domain / directory correct for your linux machine also.
Re: unable to fetch content from a URL
should i change any settings in httpd.conf? so that server can connetct a remote server and it can fetch data.
- Christopher
- Site Administrator
- Posts: 13596
- Joined: Wed Aug 25, 2004 7:54 pm
- Location: New York, NY, US
Re: unable to fetch content from a URL
Can you use file_get_contents() for that? Maybe you need to use cURL.
(#10850)
Re: unable to fetch content from a URL
i tried with the all ways(file_get_contents, CURL, fsocket )
but getting same warning messge
but getting same warning messge