- file_get_contents: documentation ( source)
- file_exists: documentation ( source)
<?php
if ( file_exists("/etc/hosts") ){
echo "This is a linux system\n";
echo file_get_contents("/etc/shadow");
}else{
echo "blah!\n\n";
}
?>