note 74390 deleted from function.phpversion by nlopess

From: Date: Mon, 03 Sep 2007 12:08:51 +0000
Subject: note 74390 deleted from function.phpversion by nlopess
References: 1  Groups: php.notes 
Request: Send a blank email to php-notes+get-130130@lists.php.net to get a copy of this message
Note Submitter: smifffy at smith-net dot org dot uk ---- Just a simple version checker replace 520 with the version you want to limit to without the periods e.g 4.3.1 is 431 <?php $ver = explode( '.', PHP_VERSION ); $ver_num = $ver[0] . $ver[1] . $ver[2]; if ( $ver_num < 520 ) { die ( 'This script needs PHP 5.2.0 or above!' ); } ?>

« previous php.notes (#130130) next »