>>579
index.html
って言う文字列から
strpos()とかsubstr()使って
拡張子取り出す処理は書ける?
pathinfo()使ってもいいけど。