You are here: Re: Wikipedia XML -> PHP? « PHP Programming Language « IT news, forums, messages
Re: Wikipedia XML -> PHP?

Posted by Benjamin Esham on 09/07/06 23:45

Cain wrote:

> How would I get this Wikipedia XML:
> http://en.wikipedia.org/wiki/Special:Export/Alastair_Ralphs into a PHP
> variable (without copy and pasting it manually)?

Use file_get_contents():

http://us3.php.net/manual/en/function.file-get-contents.php

By the way... if you're going to be doing a lot of work with Wikipedia's
data, please download your own copy of the database:

http://en.wikipedia.org/wiki/Wikipedia:Database_download
http://download.wikimedia.org/

Not only will your scripts run faster, but it will also take some strain off
of Wikipedia's servers.

HTH,
--
Benjamin D. Esham
bdesham@gmail.com | AIM: bdesham128 | Jabber: same as e-mail
"In the beginning the Universe was created. This has made a lot
of people very angry and been widely regarded as a bad move."
— Douglas Adams

 

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

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