Re: Getting data from a web page
On Jan 30, 3:34 pm, "laredotorn...@xxxxxxxxxxx"
<laredotorn...@xxxxxxxxxxx> wrote:
Hi,
I'm using php 4.4.4. What I want to do is hopefully simple. If I
type this URL into my browser:
http://maps.google.com/maps/geo?q=980+PEMART+AVE+PEEKSKILL,+NY+10566&...
I get a simple comma-delimited list of data. What I would like to do
is in my PHP script, request this URL and then put the return values
into an array. How do I do this?
Thanks, - Dave
$url = '
http://maps.google.com/maps/geo?q=980+PEMART+AVE+PEEKSKILL,+NY
+10566&...';
$arr = explode(',', file_get_contents($url));
.
Relevant Pages
- Re: Free PHP 1 to 1 chat program
... >> PHP can only send a response back to the web browser in answer to a ... >> from the browser. ... This is not a limitation of PHP, ... environment on each request. ... (comp.lang.php) - Re: XmlHttpRequest not loading latest version of xml
... >> browser and re-open the browser. ... handle as a cacherequest) and a reasonable expiration date in the ... Either this way or the simpler one: Neither in ASP nor in PHP it is ... required HTTP headers can be included right into the resource requested, ... (comp.lang.javascript) - Re: Opinions? Is it _GOOD_ that foreach() throws warning when given undef var?
... > programing to supply an argument which is not an array, ... If I wanted to request PHP behavior to change, ... NOT be replying to you - I'd be posting my request to PHP developers ... (comp.lang.php) - Re: how to run scripts after a page has already loaded and been sent to a users browser?
... > It's because PHP is a server side scripting language, ... > do stuff before you send stuff to user's web browser. ... As we've discussed on this newsgroup before, if a script starts ... that is after the last HTML is sent to a web browser. ... (alt.php) - Re: PHP / MySQL
... Should I be able to click on a php file and have it ... I have Apache, MySQL servers running. ... running, you can type, http://localhost in your browser and get the ... develope your web sites, all of the applications that you use have ... (alt.os.linux.suse) |
|