Home
How to use file_get_contents() (Dreamhost.com)
Written by Administrator   
Tuesday, 23 January 2007

DreamHost has disabled the PHP option allow_url_fopen.

Not working  file_get_contents() . The CURL library provides a feature-rich alternative.

Example:

Use:

$file_contents = 
file_get_contents('http://dreamhost.com/');
 // display file 
 echo $file_contents; 

Use:

$ch = curl_init();
$timeout = 10; // set to zero for no timeout
curl_setopt ($ch, CURLOPT_URL, 'http://dreamhost.com');
curl_setopt ($ch, CURLOPT_RETURNTRANSFER, 1);
curl_setopt ($ch, CURLOPT_CONNECTTIMEOUT, $timeout);
$file_contents = curl_exec($ch);
curl_close($ch);

// display file
echo $file_contents;

 

Last Updated ( Tuesday, 30 January 2007 )
Read more...
 
Dedicated, Shmedicated Hosting (Dreamhost.com)
Written by Administrator   
Wednesday, 17 January 2007

 For $395 a month (payable monthly, no setup fee) you get all the features of our Strictly Business shared hosting plan.

  • Your own web server!
  • AMD Dual Core 2.8 GHz processor
  • 3GB of DDR RAM
  • 500GB usable storage
  • 5TB of bandwidth / month.
Last Updated ( Wednesday, 17 January 2007 )
Read more...
 
<< Start < Prev 1 2 3 Next > End >>

Results 9 - 10 of 10