The script is for radio stations not for Listeners (you need admin access to the DNAS)
The most common problem is, most webspace Hoster still have php_save_mode restrictions active and these restrictions will block all external fileaccess. I have used phpcurl, cause it a simple and easy way to get the data i need. Even mor simple than using fsockopen or file_get_contend.
With fsockopen and file_get_contend you have to open the connection with
http://login:password@streamurl:port and i dont like that way to transmit the logindata ;)
and thats another reason, why i desided to use php-curl.