Jump to content

PHP Web-Bot [Details]


fusioneko

Recommended Posts

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
https://forums.phpfreaks.com/topic/58169-php-web-bot-details/#findComment-288502
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
https://forums.phpfreaks.com/topic/58169-php-web-bot-details/#findComment-288544
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • 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.