='); $mb = function_exists('mb_detect_encoding'); $iconv = function_exists('iconv'); $ob = function_exists('ob_start'); $simplexml = function_exists('simplexml_load_string'); $disimplexml = function_exists('dom_import_simplexml'); $pcre_str = base64_decode('w6nDqMOgw6o='); $pregutf8 = @preg_match('/'.$pcre_str.'/u', $pcre_str); $spl = function_exists("spl_classes"); $settings_done = !(($mysql_server == 'sql.village-gaulois') || ($mysql_user == 'idefix') || ($mysql_password == 'abraracourcix')); $mysql = function_exists('mysql_connect'); $mysqlver = false; $innodb = false; $mysql_connex = false; $my = ''; $link = false; if ($mysql) { $link = @mysql_connect($mysql_server, $mysql_user, $mysql_password); if ($link) { $mysql_connex = true; $my = mysql_get_server_info($link); $mysqlver = (strpos($my, "4.1") !== false) || (strpos($my, "5.") !== false); preg_match('/^[0-9.]*/', $my, $matches); $mynum = $matches[0]; $innodb = test_innodb($link, $mynum); if (!$mysqlver) { $mysql = false; } } else { $mysql = false; } } $postgres = function_exists('pg_connect'); // $sqlite = function_exists('sqlite_factory'); $bd = (($mysql && $innodb) || $postgres ); // || $sqlite); function test_innodb($link, $mysqlver) { $result = false; if (mysqlver2int($mysqlver) >= 40102) { $res = mysql_query('SHOW STORAGE ENGINES'); while ($row = mysql_fetch_assoc($res)) { if ((strtolower($row['Engine']) == 'innodb') && ((strtolower($row['Support']) == 'yes') || (strtolower($row['Support']) == 'default'))) { $result = true; break; } } } else { $res = mysql_query('SHOW VARIABLES LIKE \'have\\_%\';'); while ($row = mysql_fetch_row($res)) { if ((strtolower(substr($row[0],5)) == 'innodb') && (strtolower($row[1]) == 'yes')) { $result = true; break; } } } return $result; } function mysqlver2int($ver) { $tab = explode('.', $ver); return sprintf('%d%02d%02d', $tab[0], $tab[1], intval($tab[2])); } ?> Labo Dotclear 2

Test de l'hébergement / Hosting test

Verdict

Diagnostics / Diagnosis

Tests PHP / PHP tests

'; echo ''; echo ''; echo ''; echo ''; echo ''; echo ''; echo ''; ?>
TestRésultat / Result
PHP 5:'.($version ? 'yes' : 'no').' ('.phpversion().')
MBString:'.($mb ? 'yes' : 'no').'
Iconv:'.($iconv ? 'yes' : 'no').'
OB:'.($ob ? 'yes' : 'no').'
SPL:'.($spl ? 'yes' : 'no').'
SimpleXML:'.($simplexml ? 'yes' : 'no').'
DomImportSimpleXML:'.($disimplexml ? 'yes' : 'no').'
preg utf8:'.($pregutf8 ? 'yes' : 'no').'

Tests base de données / Database tests

'; echo ''; echo ''; echo ''; echo ''; // echo ''; ?>
TestRésultat / Result
Compatible database availability:'.($bd ? 'yes' : 'no').'
Mysql:'.($mysql ? 'yes' : 'no').'
Mysql 4.1 or sup.:'.($mysqlver ? 'yes' : 'no').($my != '' ? ' ('.$my.')' : '').'
Mysql InnoDB support:'.($innodb ? 'yes' : 'no').'
Postgres:'.($postgres ? 'yes' : 'no').'
sqlite:'.($sqlite ? 'yes' : 'no').'

Recommendations / Hints