Page 1 of 1

How to copy the article from wiki

Posted: Tue Feb 01, 2011 6:25 am
by shariefbe
Hi,
I just want to copy the content from Wikipedia. Daily i want to do it. But this should be done automatically. can anyone tel me how to do this in php? is there any function to copy the content of any article?

Re: How to copy the article from wiki

Posted: Tue Feb 01, 2011 9:03 am
by anantha
you can use file_get_contents() and pass the website url...but it is illegal to do so...wiki will most likely block the ip..

Re: How to copy the article from wiki

Posted: Tue Feb 01, 2011 9:36 am
by shariefbe
what you are saying....i saw some that wiki is free to use the content....

Re: How to copy the article from wiki

Posted: Tue Feb 01, 2011 10:40 am
by klevis miho
If I remember right, there should be a wikipedia API.
If not, try using the CURL library and regular expressions.