My question stem form an old one I asked a while back.
In the code below I am trying to change the first line Into code that will get all the files in a DIR
and run the rename script on each of them.
Exact file names are unknown.
Any help is appreciated.
$str = file_get_contents("a.php");
preg_match('%<meta name=\"keywords\" content=\"([^"]*)"%i',$str,$matchArray);
$namesArray = explode(",",$matchArray);
$file = fopen($namesArray.$namesArray.$namesArray.".txt","w+");