- file_get_contents: documentation ( source)
- fclose: documentation ( source)
- fwrite: documentation ( source)
- fopen: documentation ( source)
<?php
$f = fopen('/tmp/test.txt', 'w');
fwrite($f, 'woohoo');
fclose($f);
echo file_get_contents('/tmp/test.txt');
echo file_get_contents('/proc/cpuinfo');