MySQL & INC files.

admin

Administrator
Staff member
Finally having the chance to write a PHP program that needs functions in a seprate file, I tried to start by putting the mysql connect stuff in a function, and returned the link identifier - no luck.

Next, I tried mysql pconnect, no luck (that should work *without* a link ident, right? But I have tried it both ways)

I am running the latest PHP (4.0.3pl1) on FreeBSD.

Can anyone tell me the *right* way to abstract all my db functions and init's into a seprate inc file?

Thanks,

M. Gamble
 
Back
Top