neko.txt
ねこ

inu.txt
いぬ

いぬと出したい
<?php
readfile 'inu.txt';
?>

ねこと出したい
<?php
readfile 'neko.txt';
?>

そもそもの話になるんだが、>>865の考え方は
「楽に」はなってないんじゃないか?