Hacker News
new
|
past
|
comments
|
ask
|
show
|
jobs
|
submit
login
dholowiski
on July 16, 2011
|
parent
|
context
|
favorite
| on:
Ask HN: What's your most-used function that you wr...
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: