adres-zoeken-bij-telefoonnummer
Gesponsorde koppelingen
PHP script bestanden
Code (php)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
<?php
header("Cache-Control: no-cache, must-revalidate");
header("Expires: Mon, 26 Jul 1997 05:00:00 GMT");
echo ' <h1>Adres zoeken</h1>
<form method="post" action="getaddress.php">
<p>
<label for="postcode">Telefoonnummer:</label>
<input type="text" id="field" name="field" />
</p>
<p>
<input type="submit" class="indent" value="Zoek" />
</p>
</form>';
if($_SERVER['REQUEST_METHOD'] == "POST") {
if (isset($_POST['field'])){
$field = $_POST['field'];
}
else {
die();
}
$field = trim($field);
$link = "http://www.nummerzoeker.com/?phone=".$field;
if($data = @file_get_contents($link)) {
$data = explode('<td class="nowrap">',$data);
$dataname = explode('<td>',$data[2]);
$dataname = explode('</td>',$dataname[1]);
$datastreet = explode('</td>',$data[3]);
$datazipcode = explode('</td>',$data[4]);
$datacity = explode('</td>',$data[5]);
$naam = $dataname[0];
$straat = substr($datastreet[0], 0, strrpos($datastreet[0], " "));
$huisnummer = substr(strrchr($datastreet[0], " "), 1);
$postcode = $datazipcode[0];
$plaats = $datacity[0];
}
echo "Naam: ".$naam."<BR/> Straat: ".$straat."<BR/> Huisnummer: ".$huisnummer."<BR/> Postcode: ".$postcode."<BR/> Plaats: ".$plaats;
}
?>
header("Cache-Control: no-cache, must-revalidate");
header("Expires: Mon, 26 Jul 1997 05:00:00 GMT");
echo ' <h1>Adres zoeken</h1>
<form method="post" action="getaddress.php">
<p>
<label for="postcode">Telefoonnummer:</label>
<input type="text" id="field" name="field" />
</p>
<p>
<input type="submit" class="indent" value="Zoek" />
</p>
</form>';
if($_SERVER['REQUEST_METHOD'] == "POST") {
if (isset($_POST['field'])){
$field = $_POST['field'];
}
else {
die();
}
$field = trim($field);
$link = "http://www.nummerzoeker.com/?phone=".$field;
if($data = @file_get_contents($link)) {
$data = explode('<td class="nowrap">',$data);
$dataname = explode('<td>',$data[2]);
$dataname = explode('</td>',$dataname[1]);
$datastreet = explode('</td>',$data[3]);
$datazipcode = explode('</td>',$data[4]);
$datacity = explode('</td>',$data[5]);
$naam = $dataname[0];
$straat = substr($datastreet[0], 0, strrpos($datastreet[0], " "));
$huisnummer = substr(strrchr($datastreet[0], " "), 1);
$postcode = $datazipcode[0];
$plaats = $datacity[0];
}
echo "Naam: ".$naam."<BR/> Straat: ".$straat."<BR/> Huisnummer: ".$huisnummer."<BR/> Postcode: ".$postcode."<BR/> Plaats: ".$plaats;
}
?>