lowboy Posted October 22, 2006 Share Posted October 22, 2006 I need to use php to open a forum website (fopen/copy, etc), grab the content, and then parse/do things with it.The site uses a cookie-based login system. Once a user logs in it's the cookies which allow them to see the forum contents. Otherwise, there's a "not logged in" page that gets displayed.So I need to somehow make php appear to be a browser with my stored login cookies. Is this doable?Thanks,Jason Link to comment https://forums.phpfreaks.com/topic/24743-help-open-external-website-using-cookie-info-from-php/ Share on other sites More sharing options...
Orio Posted October 22, 2006 Share Posted October 22, 2006 You can use [url=http://www.php.net/curl]cURL[/url] for that.A good (and short) tutorial that will help you understand what cURL can do can be found [url=http://www.higherpass.com/php/Tutorials/Using-Curl-To-Query-Remote-Servers/]here[/url].Good luck.Orio. Link to comment https://forums.phpfreaks.com/topic/24743-help-open-external-website-using-cookie-info-from-php/#findComment-112675 Share on other sites More sharing options...
lowboy Posted October 22, 2006 Author Share Posted October 22, 2006 Thanks, Orio! I had no idea that cUrl existed. Link to comment https://forums.phpfreaks.com/topic/24743-help-open-external-website-using-cookie-info-from-php/#findComment-112686 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.