Alright, here the code:
[code=php]$thisVersion = “0.5”;
echo “<p id=’version’>Frosty Forums Software Vesrion $thisVersion”;
$latestVersion = trim(@file_get_contents(“http://frostyforums.com/updatecheck/version.txt”));
if(!empty($latestVersion)) // in case this installation does not allow url fopen
{
if($thisVersion < $latestVersion)
{
echo ” (version $latestVersion is now available)”;
}
}
if(!empty($latestVersion)) // in case this installation does not allow url fopen
{
if($thisVersion = $latestVersion)
{
echo ” (You are up-to-date)”;
}
}
echo “</p>n”;
//
// http://frostyforums.com/updatecheck/version.txt
// Currently equals 1.0
//
So, there is something wrong here and I can’t find it.
In the both variables show up.
Can someone help please?