Files are in order by primary person's last name. " ; $Construction=1 ; // "No=0" <<<<<<< CONSTRUCTION -- ANYTHING ELSE IS YES! Change this AND $displaydate for the construction sign if ( $Construction ) { $displaydate = "25 Feb 2022" ; // <<<<<<< CONSTRUCTION -- Change this AND $Construction for the construction sign echo "Under Construction" ; echo "

This site is currently under construction: " ; echo $displaydate ; echo "

" ; echo "

Some strange things might happen while data is being refreshed and further research is being done.

" ; echo "

You are welcome to browse around in the meantime.

" ; // echo "

It will be back in full service soon!

" ; } $Files=array(); // entries in SourceDocs $Dir=getcwd() ; $Dir=$Dir . "/SourceDocs/" ; // identify directory $Files=scandir($Dir,0) ; // $Files has the list of files in alpha order $NumFiles=count($Files) ; // number of files in directory with the word photo // echo $Files[3] ; $Found=0 ; // will contain the number of photos found $x=1 ; // index to work through $Files array ; list of files While ($NumFiles >= $x) { if(strpos($Files[$x], 'photo') !== false){ $Found++ ; $FileName="/SourceDocs/" . $Files[$x] ; $FileName=str_replace(" ","%20",$FileName) ; // STRING REPLACE IS NOT WORKING echo 'Photograph ' ; echo '

' ; } $x++ ; } echo $Found . " photographs" ; include ('SFfooter.php') ; // footer ?>