iLLeLogicaL Posted May 16, 2007 Share Posted May 16, 2007 Hello, My problem: I'm trying to make a bot script that log is in every 30 minutes or so to check for new information, post new things, etc. But I have problem: the bot has to login and I don't know how to do this. Even more complex is that the site on which the bot logs in uses cookies so you have to get these to. I guess you could preset them, but what if they use a dynamic code in one of the cookies. HELP! (with the login & cookie problem!) -- iLLeLogicaL -- Link to comment https://forums.phpfreaks.com/topic/51686-solved-loging-in-with-php-on-another-site/ Share on other sites More sharing options...
taith Posted May 16, 2007 Share Posted May 16, 2007 more then likely... the reason why they require logins, and cookies, and all these other security measures... is to prevent just what your trying to do... also... creating bots, which access secured information, to use on your own page, is more then likely, against their copyrights(illegal on your behalf), let alone morally dubious... Link to comment https://forums.phpfreaks.com/topic/51686-solved-loging-in-with-php-on-another-site/#findComment-254624 Share on other sites More sharing options...
suttercain Posted May 16, 2007 Share Posted May 16, 2007 Taith is correct. Link to comment https://forums.phpfreaks.com/topic/51686-solved-loging-in-with-php-on-another-site/#findComment-254625 Share on other sites More sharing options...
iLLeLogicaL Posted May 16, 2007 Author Share Posted May 16, 2007 Yes you both have a good point there, but still I like to see my answer question. I'm here for that, not for some ethics (may sound rude :-\). But I would like to have an answer, not some ethic discussion. -- iLLeLogicaL -- Link to comment https://forums.phpfreaks.com/topic/51686-solved-loging-in-with-php-on-another-site/#findComment-254662 Share on other sites More sharing options...
flappy_warbucks Posted May 16, 2007 Share Posted May 16, 2007 Yes you both have a good point there, but still I like to see my answer question. I'm here for that, not for some ethics (may sound rude :-\). But I would like to have an answer, not some ethic discussion. -- iLLeLogicaL -- its a wee bit naughty... but think out the box and if ur smart enough ull figure it out Link to comment https://forums.phpfreaks.com/topic/51686-solved-loging-in-with-php-on-another-site/#findComment-254663 Share on other sites More sharing options...
iLLeLogicaL Posted May 16, 2007 Author Share Posted May 16, 2007 Well, I've tough about it, tryed some ways, failed those ways that's why I've come here. I got somebody saying that file_get_contents in combination with context_stream will do what I want, but i'm bad in boxing. So please just help (with an example or something similar ) Link to comment https://forums.phpfreaks.com/topic/51686-solved-loging-in-with-php-on-another-site/#findComment-254668 Share on other sites More sharing options...
chigley Posted May 16, 2007 Share Posted May 16, 2007 cURL. Link to comment https://forums.phpfreaks.com/topic/51686-solved-loging-in-with-php-on-another-site/#findComment-254714 Share on other sites More sharing options...
iLLeLogicaL Posted May 17, 2007 Author Share Posted May 17, 2007 A good guide on how to install cURL in PHP 5.2? Link to comment https://forums.phpfreaks.com/topic/51686-solved-loging-in-with-php-on-another-site/#findComment-255471 Share on other sites More sharing options...
chigley Posted May 17, 2007 Share Posted May 17, 2007 Which OS are you running on? Local server or web server? cPanel/WHM? Need more info Link to comment https://forums.phpfreaks.com/topic/51686-solved-loging-in-with-php-on-another-site/#findComment-255608 Share on other sites More sharing options...
iLLeLogicaL Posted May 19, 2007 Author Share Posted May 19, 2007 Windows XP home SP2+ Easyphp 2 beta 2 Link to comment https://forums.phpfreaks.com/topic/51686-solved-loging-in-with-php-on-another-site/#findComment-256848 Share on other sites More sharing options...
chigley Posted May 19, 2007 Share Posted May 19, 2007 Try opening your php.ini and uncommenting the extension=php_curl.dll line. Link to comment https://forums.phpfreaks.com/topic/51686-solved-loging-in-with-php-on-another-site/#findComment-256878 Share on other sites More sharing options...
iLLeLogicaL Posted May 19, 2007 Author Share Posted May 19, 2007 And Where Should I place the libcurl map then? Link to comment https://forums.phpfreaks.com/topic/51686-solved-loging-in-with-php-on-another-site/#findComment-256962 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.