No subject
Wed Jul 15 02:15:36 UTC 2009
as soon as the file has been included. It does not mind if the code is
executed or not, Steps are like that: 1) File is loaded, 2) File is parsed
and compiled and 3) The code is executed.
So, the best way is to have a small file to check for the version prior to
including any version specific version code, you can do with a file like
that:
<?php
if ( version_compare(PHP_VERSION, '5.0.0', '<') {
die ( "PHP 5 is required to run this script");
} else {
include 'filename.php';
}
?>
Regards,
---
Jordi Canals
http://alkivia.org
More information about the wp-hackers
mailing list