I'm using the file get contents to display a dynamic text on my site. but it doesn't work 100% of the time. Every once in a while it times out and gives me the error below.
Warning: file_get_contents *** [function.file-get-content
s]: failed to open stream: Connection timed out in *** on line 9
What are my solutions?
I'm a php newbie
so detailed answers are appreciated.
my code looks like this:
$url = "http://feed.com
"; <--- gives me a .csv file
$csv = file_get_contents($url);
$output = explode($csv));