Don't process my fopen()/fread()

Hello. I’m trying to build a php sandbox with a small UI from http://codepress.org/

however I’ve encountered a small problem, when I fetch the php pages I want to edit thru fopen() they naturally come out processed. Is there anyway I can have them in clear ? as if they were .txt files ?


$file = "http://mysite.com/myfile.php";
$fp = fopen($file,'r') or die('Failed to open');
$contents = fread($fp,filesize($file));
fclose($fp);
//code to display $contents

I know it’s a huge security hole but I’m only using it on local server with proper protections. I have a feeling what I want to do is against php’s base design

cheers

mlk