How to copy the article from wiki

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
shariefbe
Forum Newbie
Posts: 16
Joined: Thu Jan 20, 2011 12:10 am
Location: Trichy, India

How to copy the article from wiki

Post 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?
anantha
Forum Commoner
Posts: 59
Joined: Thu Dec 23, 2010 7:38 pm

Re: How to copy the article from wiki

Post 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..
shariefbe
Forum Newbie
Posts: 16
Joined: Thu Jan 20, 2011 12:10 am
Location: Trichy, India

Re: How to copy the article from wiki

Post by shariefbe »

what you are saying....i saw some that wiki is free to use the content....
klevis miho
Forum Contributor
Posts: 413
Joined: Wed Oct 29, 2008 2:59 pm
Location: Albania
Contact:

Re: How to copy the article from wiki

Post by klevis miho »

If I remember right, there should be a wikipedia API.
If not, try using the CURL library and regular expressions.
Post Reply