>>271
ttp://www.php.net/manual/ja/reflectionclass.getproperties.php
ここらあたりで出来たはず

>>273
file_get_contentsはファイルパスも受け付けるのでファイルパスを記述すりゃいい
file_get_contents('../../../hogehoge')
file_get_contents('/var/www/etc/hogehoge')
みたいな感じで