hi,
i have gone over to yabb, which is perl based, but, i want to know, how can i read the news from the forums, to go onto the main site, keeping all the style its in now, but, using a different forum
i would like this done in php, or would it have to be done in perl,
i have got most of the perl work done, but, if it has to be done in perl, can someone tell me an address to a forum like this for perl?
reading news from yabb
Moderator: General Moderators
- shiznatix
- DevNet Master
- Posts: 2745
- Joined: Tue Dec 28, 2004 5:57 pm
- Location: Tallinn, Estonia
- Contact:
Code: Select all
echo '<pre>';
print_r(file_get_contents('http://www.yabbforum.com/community/YaBB.pl?board=general'));
echo '</pre>';- shiznatix
- DevNet Master
- Posts: 2745
- Joined: Tue Dec 28, 2004 5:57 pm
- Location: Tallinn, Estonia
- Contact:
your original question is poorly worded but this is what I think you are trying to do:gaogier wrote:so it can be done in php?
You want to have a script go to the yabb forums website, get the topics from one of the forums, then display that information on your own website with formatting kept the same.
Yes, that can be done with PHP. Their server outputs HTML so you don't have to use the same technology that they use to output it to get it, just get what was outputted (the HTML).
Just use the file_get_contents() function to get the pages HTML, try it and see.
LEGAL WARNING!
It is probably illigal to steal their content and put it on your site as your own. You should definatly get permission first.