Just a note on file_get_contents(): If your using it to read a page on your site, the full path will only return the html contents:
file_get_contents('http://yourdomain.com/yourscript.php');
To grab the entire contents, including server side scripting, use the relative path:
file_get_contents('yourscript.php');