All pastes #2076644 Raw Edit

Unnamed

public text v1 · immutable
#2076644 ·published 2011-06-08 09:40 UTC
rendered paste body
<?php
//
//Refresh Twitter
//
$url = 'http://www.iphoneislam.com/twitter/?Refresh=true';
// create a new cURL resource
$curl = curl_init();
// set URL and other appropriate options
curl_setopt($curl, CURLOPT_URL, $url);
curl_setopt($curl, CURLOPT_RETURNTRANSFER, true);
curl_setopt($curl, CURLOPT_HEADER, false);


// grab URL and pass it to the browser
curl_exec($curl);

if (curl_errno($curl)) {
	print curl_error($curl);
	} else {
	curl_close($curl);
	}

//End
?>