Menu

#18 Supress mysqli connection warning (useful for caching)

open
nobody
None
5
2007-03-05
2007-03-05
Rene
No

May I suggest and very small fix to the mysqli driver:
Line 108:

$ok = @mysqli_real_connect($this->_connectionID, ...

I just added the @ in front of the mysqli_real_connect .. to supress connection warnings.

Why would I do this - simple:
When ALL your queries are cached (1h) -> you can shutdown the database server and your site still stays online (readonly).

Discussion

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.