if ("3.1" == ($version = file_get_contents('http://www.adres.com/guncel.txt'))) { echo 'Güncel'; } else { if ("3.1" !== $version) echo 'Güncel değil !'; }