cURL couldn't connect to host

drizytup

New Member
I want to be able to test via my website if my stream is playing.So it will update itself accordinglyI'm using php - cURL to read the file, but am getting a "couldn't connect to host" error.the script works with other url's just not this onealso the url below works through the browser \[code\]$ch = curl_init("http://82.35.172.112:88/broadwave.m3u?src=http://stackoverflow.com/questions/10541397/p&rate=1");$fp = fopen("example_homepage.txt", "w");curl_setopt($ch, CURLOPT_FILE, $fp);curl_setopt($ch, CURLOPT_HEADER, 0);curl_exec($ch);if(curl_errno($ch)){echo 'Curl error: ' . curl_error($ch);}curl_close($ch);fclose($fp);?>\[/code\]Thanks in advanceRoy
 
Back
Top