MoreBloodWine 0 Light Poster

Code:

<?php   

$data = file_get_contents('http://support.xbox.com/en-gb/Pages/xbox-live/xbox-live-status.aspx');
preg_match_all('~<div id=\'xbox-live-status-box\'>\s*(<div.*?</div>\s*)?(.*?)</div>~is', $data, $matches );

print_r($matches);

?>

Result:
Array ( [ 0 ] => Array ( ) [ 1 ] => Array ( ) [ 2 ] => Array ( ) )

I was hoping to maybe see something similar to this... trying to work with what I've been finding on Yahoo but this is way beyond anything I understand.

[img]http://www.eojmarket.com/NonForumStuff/images/xboxstatus.png[/img]

This is what it should be grabbing / rebuilding on my site when I call mysite.com/code.php, not just the inner divs but the outer / main one as well.
[img]http://www.eojmarket.com/NonForumStuff/images/xBox_Status.png[/img]

Edit: I can work on the CSS stuff later for the coloring effects, I just wana get the main bit out of the way first.

Edit 2: Seems the BBC imag tag is disallowed here.

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.