<! version 3.0 november,2003>
<html><head><title>IT Dictionary by thaiall.com :: generate key by webmaster</title>
<style type="text/css">
body{font-family:ms sans serif;font-size:10pt}
a:link{color:red;}
a:visited{color:purple;}
a:hover{color:blue;text-decoration:underline;}
td{font-family:ms sans serif;font-size:10pt;}
</style>
</head>
<body><ol><font color=blue>Virtual key,Physical key</font>
<?
$dir_handle = opendir(".");
$file=fopen("key.txt","w");
while ($list = readdir($dir_handle)) {
if (substr($list,-4) == ".htm") {
// echo $list."<br>";
$ar = file($list);
$ar1 = preg_split("/[".chr(13)."]/",$ar[0]);
$ar2 = preg_split("/[,]/",$ar1[0]);
for ($i=1;$i<count($ar2);$i++) {
echo "<li>$ar2[$i],$ar2[0]";
fputs($file,"$ar2[$i],$ar2[0]".chr(13).chr(10));
}
}
}
fclose($file);
?>
</ol><hr color=red>
End of processing
</body></html>
จำนวน : 31 บรรทัด