i have textfile.txt:
aaa
bbb
...
zzz
i want remove some text based on text from textfile.txt
ex: we have aaa files ==> we have files
my codes still not work :
<?php
$fp = @fopen("textFile.txt", 'r');
$array = explode("
", fread($fp, filesize("textFile.txt")));
if (isset($_POST['btcari'])){
print_r(str_ireplace($array,"", $_POST['tateks']));
}
?>
thanks vo ur appreciate