{$entry['post']}
\n"; echo "{$entry['name']}\n"; echo "({$entry['date']})\n";
//print_r(parse_url("http://www.preinheimer.com/blog/test/asd"));
//print_r(parse_url("http://www.preinheimer.com/"));
//print_r(parse_url("http://www.preinheimer.com"));
//echo "";
function checkLinkBack($remoteURL, $localURL)
{
$page = implode('', file($remoteURL));
if (stristr($page, $localURL) != FALSE)
{
return true;
}else
{
return false;
}
}
function checkBadWords($excerpt)
{
$wordList = array('debt', 'poker', 'weight-loss', 'phentermine', 'diet');
foreach($wordList as $word)
{
if (stristr($excerpt, $word) != FALSE)
{
return false;
exit;
}
}
return true;
}
function checkURL($remoteURL)
{
$urlInfo = parse_url($remoteURL);
if (str_len($urlInfo['path'] > 1))
{
return true;
}else
{
return false;
}
}
?>