Click here to Skip to main content
15,938,682 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
I get an bool false return from the following php code:

$code = file_get_contents('http://maps.googleapis.com/maps/api/geocode/json?latlng=36.108820,-115.170232&sensor=false');

When I place the url in a browser it works fine.

Any thoughts on what is wrong?
Posted
Comments
Peter Leow 11-Mar-14 20:21pm    
What message did you get when echo $code?
Member 10662394 12-Mar-14 9:06am    
I was receiving a Boolean false. I got it working. Not even sure how, I don't know what changed but the data is coming through fine now. Thanks

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900