PHP mysqli error return time

Posted by Dori on Stack Overflow See other posts from Stack Overflow or by Dori
Published on 2010-06-03T14:00:08Z Indexed on 2010/06/03 14:34 UTC
Read the original article Hit count: 304

Filed under:
|

Hello.

Can i ask a fundamental question. Why when I try to create a new mysqli object in php with invalid database infomation (say an incorrect database name) does it not return an error intstantly? I usually program server stuff in Java and something like this would throw back an error strait away, not after 20 seconds or so.

For example

$conn = new mysqli($host, $username,    $password, $database);

Thanks!

© Stack Overflow or respective owner

Related posts about php

Related posts about mysql