I want to take the player names from this website http://ne.au.playstation.com/users/socom2.html and output them here is my current script but its not working can someone help..
<?php
$socomonline = 'http://ne.au.playstation.com/users/socom2.html';
// get sony's online page, and load it into a string:
$line = file_get_contents($socomonline);
// use a regular expression to hunt down the names within the page:
preg_match_all('/<tr><td align=center>(.+)<\/td><\/tr>/', $line, $matches);
// run through the names
foreach ($matches[1] as $name)
{
echo $name . "<br>\n";
}
?>