Wow jannoy
That was impressive. I had to do some changes. Syntax and the like but it works.
Thanks
FYI here is the corrected script
<?
$dir=".";
$current_dir = opendir($dir);
while($entryname = readdir($current_dir))
{
if (($entryname != ".") and( $entryname!=".." ) and ($entryname!="index.htm" )) // non file exist
{
$name=$entryname;
$nameexplode=explode(".",$name); // explode file name so we can check extension
if (($nameexplode[1]=="htm" ) || ($nameexplode[1]=="html")) // check extension
{
$handle=fopen($name,"r"); // open file
$contents = fread ($handle, filesize ($name));
if (eregi("General",$contents))
{// Found General
echo $name."<br>";// then display filename
}}}}
?>