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 Quote Link to comment 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. Quote Link to comment 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. Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.