====== findbadphp.php ====== Use this script to find corrupted PHP files. Place it in your wiki root and call it from your browser. '); if($pos !== false && !(substr($check,-2) == '?>' || substr($check,-3) == "?>\n") ){ echo "$dir/$file has trailing chars after closing ?>\n"; continue; } } closedir($dh); } }