title: When to close a connection in PHP?
body: <p>Right now I open a connection (if one is not already opened) every time I think I will need one. The question is: when I do close it? At the end of each script that uses it? Is there a standard for this sort of thing?</p>