Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

connect_to_db(); in PHP. it knows if im in a development or production environment, knows the proper username and password, and connects. Very basic i know, and im sure everyone has written a similar function, but super useful.


Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: