59 header("X-Content-Type-Options: nosniff"); // With the nosniff option, if the server says the content is text/html, the browser will render it as text/html (note that most browsers now force this option to on)
60 header("X-Frame-Options: SAMEORIGIN"); // Frames allowed only if on same domain (stop some XSS attacks)
61
62 print "*** TEST READ OF /tmp/test.txt FILE<br>\n";
63
64 $out='';
65 $ret=0;
66
67 $file = '/tmp/test.txt';
68 $f=fopen($file, 'r');
69if ($f) {
70 $s=fread($f, 4096);
71 print $s;
72 fclose($f);
73 } else {
74 print "Failed to open file ".$file."<br>\n";
75 }
76
77 print '<br><br>'."\n";
78
79
80 print "*** TEST READ OF /test.txt FILE AND LS /dev/std*<br>\n";
81
82 exec('cat /test.txt; ls /dev/std*; sleep 1;', $out, $ret);