A PHP guru and myself (NOT a guru!) are trying to get a very simple script running. It runs great on his Linux-based apache server, but does not run on mine (Apache 2.2 on FreeBSD9) or the actual server where it will live one day! It simply pulls one stat (a listener count) from a Shoutcast server's XML stats page and returns a single number.
$getstats = file_get_contents('http://myserver.com:8000/stats?sid=1');
$stats = simplexml_load_string($getstats);
Extremely simple as you can see ... no problem seeing the XML page from the Shoutcast server, but for some reason my Apache/PHP-5.3.8 server doesn't like it, and the test server doesn't either. The two of us have been banging our heads for weeks about this. There are other much more complex scripts on the same site, and the server has no problem with those. Any ideas?