
03-16-2006, 02:14 AM
|
 |
|
|
Join Date: Feb 2002
Location: Canoga Park, CA
Posts: 2,125
Благодарил(а): 0 раз(а)
Поблагодарили:
0 раз(а) в 0 сообщениях
|
|
Quote:
Originally Posted by Orcun
I checked if fopen is closed, NO !
Well, I manually pulled the XML file from Shoutcast server. Uploaded it to specified dir and refreshed.
Still says the Radio is Offline. But there is a XML filled radio.xml file which has a static info in it.
I specified the path for file as /home/forumtur/public_html/radio.xml
Are there anything wrong you see ?
|
What about this ?
Code:
// Add:
$domain = "www.domainhere.com"; // The domain to retrieve the xml
$xmlfile = "filename.xml"; //xml filename from your saved stdout 1>
// Change
$scfp = fsockopen($domain, 80, &$errno, &$errstr, 1);
// Change
fputs($scfp,"GET /$xmlfile HTTP/1.0\r\nUser-Agent: SHOUTcast Song Status (Mozilla Compatible)\r\n\r\n");
|