I have some code that makes a connection to the db. When I run this code from the command line, it stops at the db connection. If I call the script from the browser, it works fine. I've changed the permissions and that didn't work. The db connection is the basic, localhost, root, with no password.
What else can I try?