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
[Back to original message]
|