Logging the contents of a file, and printing some random stuff:
JS (in node):
var fs = require('fs');
fs.readFile('/foo.txt', function(contents) {
console.log(contents);
});
console.log("pwn3d");
PHP:
<?php
echo file_get_contents('/foo.txt');
echo "pwn3d";