Re: Getting data from a web page
- From: NC <nc@xxxxxxxxx>
- Date: Wed, 30 Jan 2008 19:34:42 -0800 (PST)
On Jan 30, 12:34 pm, "laredotorn...@xxxxxxxxxxx"
<laredotorn...@xxxxxxxxxxx> wrote:
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?
$URL = 'http://maps.google.com/maps/geo?q=...';
$dataArray = explode(',', trim(file_get_contents($URL)));
Cheers,
NC
.
- References:
- Getting data from a web page
- From: laredotornado@xxxxxxxxxxx
- Getting data from a web page
- Prev by Date: Timers in php?
- Next by Date: Rotate 3D Imagen in PHP GD ?
- Previous by thread: Re: Getting data from a web page
- Next by thread: CURL and PHPBB
- Index(es):
Relevant Pages
|