<?php
$carifile = "index";
if ($handle = opendir('/var/www/kholimi')) {
while (false !== ($file = readdir($handle))) {
if ($file != "." && $file != ".." ) {
if (!strcmp($file, $carifile.".html")) echo "$file
";
}
}
closedir($handle);
}
?>
Tinggal mengganti variabel $carifile dengan sebuah inputan.
No comments:
Post a Comment