Thread: Version Checker
View Single Post
Old 03-02-2008, 11:35 PM   #6 (permalink)
Wildhoney
La Vida es Sueño
Advanced Programmer Top Contributor 
 
Wildhoney's Avatar
 
Join Date: Sep 2007
Location: Oldham
Posts: 2,280
Thanks: 90
Wildhoney is on a distinguished road
Default

Try something like this See attached.

Therefore to use it you would do something like the following, as DeMo suggested:

php Code:
$pVersion = new TalkPHP_VersionChecker();

$fCurrentVersion = 1.0;
$fLatestVersion = (float) $pVersion->getVersion();

if($fCurrentVersion < $fLatestVersion)
{
    echo 'Version: ' . $fLatestVersion . '<br />';
    echo 'Link: <a href="' . $pVersion->getLink() . '">Download Update</a>';
}
Attached Files
File Type: xml version.xml (93 Bytes, 167 views)
File Type: php version.php (1.0 KB, 192 views)
__________________
The man who comes back through the Door in the Wall will never be quite the same as the man who went out.

Last edited by Wildhoney : 03-03-2008 at 12:18 AM.
Send a message via AIM to Wildhoney Send a message via MSN to Wildhoney Send a message via Yahoo to Wildhoney
Wildhoney is offline  
Reply With Quote