Firstly, you're not reading in the contents of the file. To read the contents, put an extra line, after the fopen() line, saying:
$contents = fread ($open_file, filesize ($script));
Secondly, when you're outputing this to the screen, you'll probably need:
htmlentities($contents)
in your print() line, rather than just ouputing the string to the browser.