Success Connate
'; } // xml to array // //echo $buffer ; $xml = simplexml_load_string("$buffer"); foreach ($xml->children() as $child) { echo " $child "; // The twitter API address $url_2 = "http://twitter.com/friendships/destroy.xml?user_id=$child"; $curl_handle = curl_init(); curl_setopt($curl_handle, CURLOPT_URL, "$url_2"); curl_setopt($curl_handle, CURLOPT_CONNECTTIMEOUT, 2); curl_setopt($curl_handle, CURLOPT_RETURNTRANSFER, 1); curl_setopt($curl_handle, CURLOPT_POST, 1); curl_setopt($curl_handle, CURLOPT_POSTFIELDS, "status=$message"); curl_setopt($curl_handle, CURLOPT_USERPWD, "$username:$password"); $buffer_2 = curl_exec($curl_handle); curl_close($curl_handle); // check for success or failure if (empty($buffer_2)) { echo 'Error'; } else { echo 'Go to hell

'; } } ?>