Search the web
Sign In
New User? Sign Up
ydn-php · Yahoo! PHP Developer Group (CLOSED)
? Already a member? Sign in to Yahoo!

Yahoo! Groups Tips

Did you know...
Message search is now enhanced, find messages faster. Take it for a spin.

Best of Y! Groups

   Check them out and nominate your group.
Having problems with message search? Fill out this form to ensure your group is one of the first to be migrated to the new message search system.

Messages

  Messages Help
Advanced
PHP geocoding problem   Message List  
Reply | Forward Message #247 of 335 |
I get the following error when I try to use geocoding in my php file,
but it works fine if I cut and paste the URL into the browser address
bar.

[function.file-get-contents]: failed to open stream: HTTP request
failed! HTTP/1.1 400 Bad Request


Here is my code:

$address = "http://local.yahooapis.com/MapsService/V1/geocode?
appid=$key&street=$encodeaddress&city=$encodecity&state=$encodestate&ou
tput=php";
$page = file_get_contents($address);

Any help would be great.

Thanks,
Mark




Thu Apr 24, 2008 8:00 pm

y7inyan7g
Offline Offline
Send Email Send Email

Forward
Message #247 of 335 |
Expand Messages Author Sort by Date

I get the following error when I try to use geocoding in my php file, but it works fine if I cut and paste the URL into the browser address bar. ...
y7inyan7g
Offline Send Email
Apr 25, 2008
4:45 pm
Advanced

Copyright © 2009 Yahoo! Inc. All rights reserved.
Privacy Policy - Terms of Service - Guidelines - Help