Jump to content

Grab Data from other site


supermerc

Recommended Posts

Hi, I am making a sort of help site for an online game. The game allows crew to raid monsters and they drop items.

 

What I want to do is have a script that grabs the raid ID and will get the names of the items that dropped and insert them in database to show what Items were dropped from that raid.

 

http://quiver.outwar.com/raidattack.php?raidid=282214 <--- Thats an example of a raid, and at the bottom where it says the items found is what I want to insert in my database.

 

If someone knows how to do this it would be greatly appreciated.

 

 

Link to comment
https://forums.phpfreaks.com/topic/131921-grab-data-from-other-site/
Share on other sites

I've never used curl and without having done it the only way I can think of is:

$site=file('http://quiver.outwar.com/raidattack.php?raidid=282214');

 

That pulls the HTML from that page then it'd be up to you to parse it in some way.

 

Sorry, best I can do :(

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.