php fclose and godaddy

I had some problems yonks ago with godaddy and fopen/close
I should have blogged about it then so I hope its still relevant:
lets say we want to source our website:

$website = "";

// The following fopen() to fclose() is restricted by godaddy, no problem
require 'HTTP/Request.php';
$r = new HTTP_Request($website);
$page = $r->getResponseBody();

$c = curl_init($website);
curl_setopt($c, CURLOPT_RETURNTRANSFER, 1);
$page = curl_exec($c);
$page = '';
$fh = fopen($website, 'r') or die($php_errormsg);
while (! feof($fh)) {
$page .= fread($fh,1048576);

That just wont work with some security on places like godaddy (like always there is always a workaround).
What is much prettier AND actually works on godaddy is:

// here is our replacement
function getPage($page)
$cinit = curl_init();
curl_setopt ($cinit, CURLOPT_URL, $page);
curl_setopt ($cinit, CURLOPT_HEADER, 0);
curl_exec ($cinit);
curl_close ($cinit);
$ret = ob_get_contents();
return $ret;
$page = getPage ($website);