- class PHPBot { 
-   
-     function PHPBot (){ 
-       $ch = $this->ch; 
-       curl_setopt($ch,-  CURLOPT_HEADER , 1); // Include headers in response or not
 
-       curl_setopt($ch,-  CURLOPT_RETURNTRANSFER , 1); // Return (don't print) answer of exec
 
-       curl_setopt($ch,-  CURLOPT_USERAGENT , "Mozilla/5.0 (Windows; U; Windows NT 6.0; en-US; rv:1.9.0.12) Gecko/2009070611 Firefox/3.0.12");
 
-       curl_setopt($ch,-  CURLOPT_AUTOREFERER , true); // Isn't this great?
 
-       curl_setopt($ch,-  CURLOPT_HTTPHEADER , array('Accept: */*', 'Accept-Language: en-us,en;q=0.5', 'Accept-Charset: ISO-8859-1,utf-8;q=0.7,*;q=0.7'));
 
-     } 
-      
-     private function act($url, $params = false){ 
-       $ch = $this->ch; 
-       if ($params != false){ 
-         curl_setopt($ch,-  CURLOPT_POSTFIELDS , $this->myurlencode($params));
 
-       } 
-       else 
-       return $r; 
-     } 
-      
-     private function myurlencode($dict){ 
-       $r = ""; 
-       foreach($dict as $key => $value) 
-       return $r; 
-     } 
-      
-     function get ($url){ 
-       return $this->act($url); 
-     } 
-      
-     function post($url, $params){ 
-       return $this->act($url, $params); 
-     } 
-   
-   }