Jump to content

PHP Web-Bot [Details]


fusioneko

Recommended Posts

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.

Link to comment
Share on other sites

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

Link to comment
Share on other sites

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.

Link to comment
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.