$rss, CURLOPT_USERAGENT => 'spider', CURLOPT_TIMEOUT => 120, CURLOPT_CONNECTTIMEOUT => 30, CURLOPT_RETURNTRANSFER => TRUE, CURLOPT_ENCODING => 'UTF-8' )); $data = curl_exec($curl); curl_close($curl); $xml = simplexml_load_string($data, 'SimpleXMLElement', LIBXML_NOCDATA); function chopstring( $string, $maxlength = 0, $append = '...' ) { $strlen = strlen( $string ); if( $strlen <= (int) $maxlength ) return $string; $chopped = substr( $string, 0, (int) $maxlength ); $chopped_on_space = substr( $chopped, 0, strrpos( $chopped, ' ' ) ); return ( $chopped_on_space ) . $append; } ; { $item = $xml->channel->item[0]; echo '
' . chopstring( $item->title, 50 ). '
' . date( 'd-m-Y, H:i:s', strtotime( $item->pubDate ) ) . '
' . chopstring( $item->description, 350 ). '

'; } { $item = $xml->channel->item[1]; echo '
' . chopstring( $item->title, 50 ). '
' . date( 'd-m-Y, H:i:s', strtotime( $item->pubDate ) ) . '
' . chopstring( $item->description, 350 ) . '

'; } { $item = $xml->channel->item[2]; echo '
' . chopstring( $item->title, 50 ). '
' . date( 'd-m-Y, H:i:s', strtotime( $item->pubDate ) ) . '
' . chopstring( $item->description, 350 ) . '
'; } $content = ob_get_clean(); ?> RSS ARNOLDIE RSS