maar deze werkt niet
code:
voorbeeld http://www.packagingconsult.com/tcii/personenzoeker.php
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1" />
<title>Untitled Document</title>
<head>
</head>
<body>
<center>
<form action="personenzoeker.php" method="POST">
<img src="PersonenZoeker.jpg" /><br />
<br />
<input type="text" name="zoek" size="55" value="<?php echo $_POST["zoek"]; ?>"/><br />
<input type="submit" name="submit" value="Zoek persoon!"/><br />
<input type="checkbox" name="hyves" checked="checked" /> Hyves <input type="checkbox" name="schoolbank" checked="checked" /> schoolbank
</form>
<?php
error_reporting(E_ALL);
// Een haalop functie maakt
function haalop($start, $end, $read) {
$read2 = file_get_contents($read);
$data = eregi("$start(.*)$end", $read2, $output);
$output = $output[1];
return $output;
}
// hier halen we de gezochte info op
$website = haalop('<br />', '<br />', "http://whois.domain-registry.nl/whois?domain=".$_POST["zoek"]."&lang=NL");
$hyves = haalop('<p class="itemline">', '</p>', 'http://www.hyves.nl/?l1=mo&l2=srch&searchterms='.$_POST["zoek"].'');
$linkedin = haalop('<h2>', '</h2>', 'http://www.linkedin.com/search?search=&sik=1201289252327&keywords='.$_POST["zoek"].'&sortCriteria=4&rd=out');
echo $output;
echo $website;
echo $linkedin;
?>
</center>
</body></html>