You are here: Re: Getting data from a web page « PHP Programming Language « IT news, forums, messages
Re: Getting data from a web page

Posted by NC on 01/31/08 03:34

On Jan 30, 12:34 pm, "laredotorn...@zipmail.com"
<laredotorn...@zipmail.com> 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

 

Navigation:

[Reply to this message]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация