Kerroch - 2005-07-13 06:03:07 -
In reply to message 2 from Mhyk Duterte
hello,
I use PHP 5.0.4
and the function getVersion() returns 3. (as it is a php <=4)
function getVersion()
{
$version = phpversion();
$version = explode('.',$version);
if ( ($version[0] = 4 && $version[1] >= 1) ){
return 4;
} else {
return 3;
}
With this modification it works well
function getVersion()
{
$version = phpversion();
$version = explode('.',$version);
if ( ($version[0]>4) ||($version[0] = 4 && $version[1] >= 1) ){
return 4;
} else {
return 3;
}
thanks for all
bye
Kerroch