richiec Posted October 8, 2007 Share Posted October 8, 2007 Hey people, i am a little stuck ill try and explain it best i can. What i am trying to do is parse some information from a site (easy enough) however i need to be loged in to the site to get that information and i have no idea how to do that. Could someone give me an example please? http://sigil.outwar.com login_username=username login_password=password Once loged in i then need to go to another page which can just be linked to once loged in. Any ideas? Thanks Rich. Quote Link to comment https://forums.phpfreaks.com/topic/72364-solved-parseing/ Share on other sites More sharing options...
SammyGunnz Posted October 8, 2007 Share Posted October 8, 2007 http://www.php.net/curl Quote Link to comment https://forums.phpfreaks.com/topic/72364-solved-parseing/#findComment-364972 Share on other sites More sharing options...
richiec Posted October 8, 2007 Author Share Posted October 8, 2007 sigh... So curl is the only way to do it? because it seems like a lot just to login to a site Quote Link to comment https://forums.phpfreaks.com/topic/72364-solved-parseing/#findComment-364975 Share on other sites More sharing options...
SammyGunnz Posted October 9, 2007 Share Posted October 9, 2007 But you're not simply asking PHP to parse data/info on a page, the page requires authentication and navigation to get to what you need. Sometimes it takes some work and motivation to write code that will do what you need it to. There are other ways...curl is your best bet with PHP, to keep it simple and light weight. Quote Link to comment https://forums.phpfreaks.com/topic/72364-solved-parseing/#findComment-365102 Share on other sites More sharing options...
richiec Posted October 9, 2007 Author Share Posted October 9, 2007 i have curl uploaded now on my site but i cant get my head around how to install it to work with my php site. Can anyone help? Quote Link to comment https://forums.phpfreaks.com/topic/72364-solved-parseing/#findComment-365329 Share on other sites More sharing options...
trq Posted October 9, 2007 Share Posted October 9, 2007 Have you looked at the curl extension docs? Quote Link to comment https://forums.phpfreaks.com/topic/72364-solved-parseing/#findComment-365406 Share on other sites More sharing options...
SammyGunnz Posted October 9, 2007 Share Posted October 9, 2007 Do you have root access to the server? Is this a Linux or Windows based server? Quote Link to comment https://forums.phpfreaks.com/topic/72364-solved-parseing/#findComment-365601 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.