Go Back   CodingForums.com > :: Server side development > PHP

Before you post, read our: Rules & Posting Guidelines

Reply
 
Thread Tools Rate Thread
Enjoy an ad free experience by logging in. Not a member yet? Register.
Old 02-16-2008, 02:55 PM   PM User | #1
Lee Stevens
Regular Coder

 
Join Date: Aug 2006
Location: UK, London, Dartford
Posts: 221
Thanks: 3
Thanked 14 Times in 14 Posts
Lee Stevens is an unknown quantity at this point
Fetching Content

Afternoon!

Right well, i would like to no if there is a script that can grab content from another website?

More about what i want it to do:
Well, i play a MMORPG and i would like it so when i login the script automatically grabs all the users listed on that page. Then i can use them on my site.

If you dont understand i'll try to explain abit better :P
Lee Stevens is offline   Reply With Quote
Old 02-16-2008, 04:53 PM   PM User | #2
mlseim
Master Coder

 
mlseim's Avatar
 
Join Date: Jun 2003
Location: Cottage Grove, Minnesota
Posts: 9,055
Thanks: 8
Thanked 1,032 Times in 1,023 Posts
mlseim has a spectacular aura aboutmlseim has a spectacular aura aboutmlseim has a spectacular aura about
It's called "web scraping", you can Google that.

Your webhost may or may not allow "fopen" to open a URL.
Depending on version of PHP or "php.ini" settings.
You may end up searching for "PHP CURL" functions instead.

I guess it would be similar to creating an RSS Feed Reader.

That leads me to this part ... "web scraping" is not really an
ethical way to get information. You essentially are consuming
bandwidth from the other site. With permission from the other
site owner (they may be OK with it), I guess you can do it though.

That's the whole point of sites providing RSS. They can cache
the XML files and let users gather timely information. The host
of the RSS feed stays in control of the information and the
caching (which affects the bandwidth).

I'm not going to provide any snippets because in my opinion, it's not ethical.
mlseim is offline   Reply With Quote
Old 02-16-2008, 06:54 PM   PM User | #3
Lee Stevens
Regular Coder

 
Join Date: Aug 2006
Location: UK, London, Dartford
Posts: 221
Thanks: 3
Thanked 14 Times in 14 Posts
Lee Stevens is an unknown quantity at this point
That's okay thank you for your reply anyway. I'll defently google that.

The reason i need to "web scrap" is because they don't provide a RSS for this part. So this is the only alternative.

Last edited by Lee Stevens; 02-16-2008 at 07:01 PM..
Lee Stevens is offline   Reply With Quote
Reply

Bookmarks

Jump To Top of Thread


Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT +1. The time now is 12:47 AM.


Advertisement
Log in to turn off these ads.