[quote]i’m trying to understand the mysqli_connect f functions.
it requires a socket parameter at the end, i suppose that would be the part where you typed /tmp/mysql5.sock at the hostname. but do you now just type “/tmp/mysql5.sock” as last parameter or do you need to type something else as well ?[/quote]
You might want to look a little more closely at the PHP manual section for that mysqli_connect.
If you do, you will note that the socket parameter, like the port parameter, is optional and is NOT required.
Just like when using mysql_connect,defaults are used when not specified. For instance:
$db = mysqli_connect($host, $login, $pass, $dbName);
?>… will “just work” without the parameter.