Jump to content

[SOLVED] Proxy from txt file?


mikey3521

Recommended Posts

Hey, I'm working on a test script here, this is what i've gotten thus far:

 

$proxies = array("proxy1.net", "proxy2.com", "proxy3.org");
$h = fopen($proxies[rand(0, count($proxies)], 80);
fwrite($h, "OPEN recordedhits.php");
fclose($h);

 

Pretty much want I want to-do here, is make a txt document full of proxy servers & or ip's then when this script is called it should go threw them one at a time and hit my recordedhits.php script which should record it all. I've got the recordedhits.php one finished now I just need a little help on this one. I'm not quite sure how to pull the proxy's from an array, and well im not even sure if this will work and im pretty sure this just randomlly picks a proxy and dosn't actually go threw them all 1 at a time.... Any help would be greatly apperciated. thanks.

Link to comment
https://forums.phpfreaks.com/topic/75297-solved-proxy-from-txt-file/
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.