Php Arama sayfası

bitanem03

Öğrenci
Katılım
26 Şubat 2013
Mesajlar
98
Reaksiyon puanı
0
Puanları
6
php de dosya arama yapmak istiyorum bi tane buldum ancak aramada sıkıntım var
PHP:
<?php

if (empty ($ara) ): ?>

<form action="<? echo $php_self; ?>" method="post">
<input type="text" name="ara">
<input type="submit" value="ara">
</form>

<?

else:

$klasor = "/yeniß" ;
$klasor_ac = opendir ($klasor);

while ( $file = readdir ($klasor_ac ) ) {


if (stristr ($file, ".php") || stristr ($file, ".htm") ) {

$ac[$i] = @fopen ($file, 'r');
$oku[$i] = fread ( $ac[$i], filesize ($file) );

if ( eregi ($ara, $oku[$i] ) ) {
echo "$file<br>\n";
}

}

$i++;
}

closedir ($klasor_ac);

endif;

?>
bu kodda adobe .pdf adlı dosya yı bulamadı
Bu psd düzenleyemedim hata oluyo yardım http://www.psdup.com/kategorili-arma-kutusu-csshtmlpsd.html
 
Üst