Script for you: Scrape everything faster and easier with curl_multi and "threads"



Actually this does the trick
Code:
    public static function strip_whitespace($string) {
        trim($string);
        return $string;
    }

Yeah this is a great class. I'm trying to figure it out.

You are missing a method in the QueenAnt class.

Code:
PHP Fatal error:  Call to undefined method QueenAnt::strip_whitespace()

So, do I simply need to add this to QueenAnt class to have the correct method called.

Code:
//protected so only children can use
protected function strip_whitespace($string) {
        trim($string);
        return $this->string;
    }
 
oh sorry forgot that

Code:
    public static function strip_whitespace($str) {
        $str = str_replace(' ', '', $str);
        $str = str_replace("\n", '', $str);
        $str = str_replace("\r", '', $str);
        $str = str_replace("\t", '', $str);
        return $str;
    }
 
Rock out with your cock out!

Now that I've got some type of understanding, I'll look to see what I can contribute to the thread with my php newbie power. I was looking at writing an ant to scrape either Proxy Lists. for proxies or Free Proxy Lists - IP and Port Lists - Hide My Ass! but both only show the proxy with no port.

Any suggestions on either or should I move on to lower hanging fruit?
 
these classes are a nice piece of work, thanks.

gonna try writing up a couple ants for blog spidering tommorow.