TEENFRONT Posted April 11, 2010 Share Posted April 11, 2010 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 More sharing options...
Jax2 Posted April 12, 2010 Share Posted April 12, 2010 You will need to look into cURL. ... http://us.php.net/manual/en/ref.curl.php Link to comment https://forums.phpfreaks.com/topic/198244-pulling-stats-from-another-website/#findComment-1040190 Share on other sites More sharing options...
cags Posted April 12, 2010 Share Posted April 12, 2010 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. Link to comment https://forums.phpfreaks.com/topic/198244-pulling-stats-from-another-website/#findComment-1040395 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.