I've been out of PHP too long, and can't get a simple preg_match to work for me. Perhaps I'm going at this the wrong way, can anyone give me some help? hahaha!!!
<?php
$url="http://dtkbans.com/index.php?p=banlist&searchText=".$_GET['STEAMID']."&Submit=";
$ch = curl_init();
curl_setopt($ch, CURLOPT_URL, $url);
curl_setopt ($ch, CURLOPT_RETURNTRANSFER, 1);
$data = curl_exec ($ch);
curl_close ($ch);
preg_match('/<i>Total Bans: |\d|</i>/igm', $data, $matches);
print_r($matches);
?>
I basically want it to return the amount of Total Bans. but its not outputting anything :(
You should backslash your greater than/less than signs and I usually surround my match with parenthesis.