Jump to content

Pulling stats from another website?


TEENFRONT

Recommended Posts

Hi

 

I have my own custom advert manager. It basically rotates through and displays the tags of my advertising partners, who all have their own stats/earnings sites which I have to check daily.

 

Is it possible, and where do I start, with like getting my server to login to these stats sites daily and pulling the impressions, revenue, cpm, etc from the pages?

 

I know il have to do a bit of custom work once I'm actually on the stats page to find and grab the stats but how do I get there in the first place?

 

I need my script to go to a URL, enter my login details, submit a form then grab the stats.

 

Is it even possible? Any pointers?

 

Cheers!!

Link to comment
https://forums.phpfreaks.com/topic/198244-pulling-stats-from-another-website/
Share on other sites

Jax2 is certainly correct, unless they happen to provide an API for you to connect to then cURL is definitely the best option. Before you get too stuck in it's worth checking what web technologies the target sites use. If they are PHP/HTML based the implementation should be fairly pain free, if however any of the sites are written with ASPX things could be a bit more of a pain in the backside. Due to the way ASPX pages work, there are extra processes that need to be done, it's still likely possible with cURL, just something to watch out for.

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.