fusioneko Posted July 3, 2007 Share Posted July 3, 2007 Hello, Im looking to make a web bot. To perform multiple tasks on other websites. I hear its possible but I cannot find the resources to get me started and even the know how. I don't even know how to even think its possible. well if you don't get my point then please do tell me. Quote Link to comment Share on other sites More sharing options...
corbin Posted July 3, 2007 Share Posted July 3, 2007 That sounds quite malacious in intent, but I don't know the details so, what ever ;p. If I understood what you're asking correctly, you probably want to look into the cURL library. Quote Link to comment Share on other sites More sharing options...
fusioneko Posted July 3, 2007 Author Share Posted July 3, 2007 That sounds quite malacious in intent, but I don't know the details so, what ever ;p. If I understood what you're asking correctly, you probably want to look into the cURL library. Yeah it does, But I mostly feel into more learning potential. Also where can I find this "cURL Library" I found it, Thanks Ill check it out and see what I can do. and Ill reply back with my problems Quote Link to comment Share on other sites More sharing options...
rhyspaterson Posted July 3, 2007 Share Posted July 3, 2007 http://php.net/curl Quote Link to comment Share on other sites More sharing options...
corbin Posted July 3, 2007 Share Posted July 3, 2007 You can also look into fopen, file(), and include with remote URLs although your host most likely has it disabled. Quote Link to comment Share on other sites More sharing options...
fusioneko Posted July 3, 2007 Author Share Posted July 3, 2007 You can also look into fopen, file(), and include with remote URLs although your host most likely has it disabled. My host? No I host from my own computer Why rely on the unreliable and rely on yourself. Quote Link to comment Share on other sites More sharing options...
corbin Posted July 3, 2007 Share Posted July 3, 2007 Well, in my case I have a 256kbps up line, so that kind of knocks me out of self hosting ;p. Quote Link to comment Share on other sites More sharing options...
fusioneko Posted July 3, 2007 Author Share Posted July 3, 2007 Yeah well besides the cURL and f methods. I'd rather enjoy an example. But atleast I have enough resources to wire them all together. Ill have to look at this in the morning to wire in the cURL library. Quote Link to comment Share on other sites More sharing options...
corbin Posted July 3, 2007 Share Posted July 3, 2007 I can give you an fopen example if that will suffice (I haven't used cURL, and I don't feel like looking through the documentation ;p). $google = fopen('http://google.com/', 'r'); $google_content = fread($google, filesize('http://google.com/')); fclose($google); echo $google_content; //this would echo the HTML from the google home page On a random side note, filesize is only partly supporting URLs as of php 5.0, but you could do it other ways too. Quote Link to comment Share on other sites More sharing options...
fusioneko Posted July 3, 2007 Author Share Posted July 3, 2007 Thanks Ill try that out. But thats not enough of what I want. I just cant think of how the bot is gonna work. I need it to accept cookies. 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.