Ok, so I've had a look around and couldn't find anything. I'm using this on a site I am creating as the client is notorious for removing company branding and adding his own.
The index.php file has the following check in it, but I want it to be able to output what lines differ if they are not identical.
$orgf = 'http://example.com/originalindex.php'; //Original File
$curf = 'index.php'; //This File
$safe = FALSE;
$error = "";
if (file_get_contents($orgf) == file_get_contents($curf)) { $safe = TRUE; } else { $safe = FALSE; $error = $error."Original index.php file has been modified<br/>"; }
Thanks, Matt.