You write what you wanna do with it, but here's a parser. And no coments on the code people, it was put together rather fast :p
<?php
$watch = array('dalecosp', 'LordShryku', 'redrabbit'); # Birthdays to watch for
$proxy = ''; # Proxy Server. Leave blank if you don't use one
$port = ''; # Proxy Port. Leave blank if you don't use a proxy.
#### Don't edit below this line.
#### Oh hell, go ahead an edit below this line. Just don't expect me to fix it.
####################
$found = array();
$page = 'http://phpbuilder.com/board/index.php';
if(empty($proxy) || empty($port)) {
$page = file_get_contents($page);
}
else {
$data = fsockopen($proxy, $proxy);
if(!$data) {
echo "Cannot access ".$page;
}
else {
fputs($data, "GET $page HTTP/1.0\n\n");
$cont = '';
while(!feof($data)) {
$cont .= fread($data, 4096);
}
}
@fclose($data);
$page = substr($cont, strpos($cont, "\r\n\r\n") + 4);
}
$page = strstr($page, 'Birthdays:');
if(($end = strpos($page, '</td>')) !== false)
$page = substr($page, 0, $end);
if(!empty($page)) {
$users = explode("</a>", $page);
foreach($users as $u) {
if(eregi('userid=[0-9]', $u)) {
$found[] = trim(str_replace('>', '', substr($u, strrpos($u, '>'))));
}
}
}
if(count($found) > 0) {
$matches = array_intersect($watch, $found);
if(count($matches) > 0) {
$label = (count($matches) > 1) ? 'had birthdays' : 'had a birthday';
$label .= ' today!';
echo implode(', ', $matches).$label;
}
else {
echo 'No birthdays today';
}
}
else {
echo 'This script sucks. Could not find the birthdays';
}
?>