3 ms·
Surely that depends on your application, in 99.9% of cases where you are using LAMP to host some site a failed mysql_connect is probably an epic fail condition.
by jiggy2011 14y ago
Surely that depends on your application, in 99.9% of cases where you are using LAMP to host some site a failed mysql_connect is probably an epic fail condition.
My point is rather that there may certainly be applications where this is not the case.
This is an area where exceptions are better than dumb warnings.
- jtreminio 14y agoDon't use mysql_*. Says so right in the docs. PDO can be used with try/catch.
- justinator 14y agoEpic? http://semi-rad.com/2013/01/everything-is-epic/ http://semi-rad.com/2013/01/everything-is-epic/
- astrodust 14y agoUsing mysql_query is an epic fail condition. Period.