<?php include 'jquery_updater.class.php'; $jQu = new jquery_updater; $jQu->setJqueryPath('jquery.js'); if($jQu->thereIsNewer()){ $jQu->update(); echo 'You\'ve used version: ', $jQu->localVersion, '.<br>Version was updated to: ', $jQu->lastestVersion, '.'; }else{ echo 'Currently using the latest version: ', $jQu->localVersion, '.'; }