note 23294 deleted from function.phpversion by nlopess

From: Date: Thu, 26 Feb 2004 16:38:54 +0000
Subject: note 23294 deleted from function.phpversion by nlopess
References: 1  Groups: php.notes 
Request: Send a blank email to php-notes+get-65813@lists.php.net to get a copy of this message
Note Submitter: Nick.Citizen@gmx.de ---- function version_check($vercheck) { $minver = str_replace(".","", $vercheck); $curver = str_replace(".","", phpversion()); if($curver >= $minver){ return true; } else { die("SORRY! PHP version ".$vercheck." or greater is required. Your PHP-Version is : ".phpversion()); } } version_check('4.0.6'); // if version not ok the script stopped and displays an errormsg

« previous php.notes (#65813) next »