ragazzi ho seguito questa guida.....
https://turbolab.it/apache-server-we...dows-linux-548
ho installato:
apache, php ,e mysql.....
Premetto che finche ho installato php la pagina test php funzionava tutto corretto.....
poi ho installato mysql 8.0 , ho creato il db e tabella, ma quando vado a connettermi ricevo .....
"fatal error uncaught error call to undefined function mysqli_connect() in c:\xxxxx\connect.php: php:20 Stack Trace: #0 "
anche se non credo sia un suo problema ma vi posto il mio file di connessione ....
e qui inserisco cosa mi esce dal mio phpinfo();Codice PHP:
<?php
function OpenCon()
{
$dbhost = "localhost";
$dbuser = "root";
$dbpass = "passwordroot";
$db = "mydb";
//*********************/
/* Test the MySQL connection */
/*$mysql = mysqli_connect('localhost', 'root', 'root');
if (mysqli_connect_errno()) {
printf("Connection failed: %s\n", mysqli_connect_error());
exit();
}
printf("MySQL server version: %s\n", mysqli_get_server_info($mysql));
mysqli_close($mysql);
//**********************/
$connect = mysqli_connect($dbhost, $dbuser, $dbpass,$db) or die("Connessione al Server Fallita: %s\n". $connect -> error);
return $connect;
}
function CloseCon($connect)
{
$connect -> close();
} ?>
mysqlndCosa postrebbe essere ????
mysqlnd enabled Version mysqlnd 5.0.12-dev - 20150407 - $Id: 7cc7cc96e675f6d72e5cf0f267f48e167c2abb23 $ Compression supported core SSL supported extended SSL not supported Command buffer size 4096 Read buffer size 32768 Read timeout 86400 Collecting statistics Yes Collecting memory statistics Yes Tracing n/a Loaded plugins mysqlnd,debug_trace,auth_plugin_mysql_native_passw ord,auth_plugin_mysql_clear_password API Extensions no value
� giusto che mi da version mysqlInd 5.0.12 ???
Grazie.