Re: [PHP-DB] mysql_pconnect options

[email protected] (Chris)
Newsgroups php.db
Message-ID <[email protected]>
Kathy Mazur Worden wrote:
> Thanks, I had been to that page and understood it to mean there are not 
> 2 options that would handle the "false, 2" part, but since 
> mysql_pconnect works on one server with the options there has to be a 
> way to get it working on another.

If you want to waste time doing that, I guess..

You know you're not setting client_flags to "2" here though right? It's 
being set to FALSE.

FALSE in the mysql_connect call is for "new_link". "2" is for the client 
flags - and you're better off using the constants defined so you don't 
have to go back and look at what you're setting.

Different php versions? What happens on the server that doesn't work? Do 
you get an error, do you get a segfault, something else ?

Do you have error_reporting(E_ALL) and ini_set('display_errors', true) 
set so you'd notice any problems/messages?


Just change the pconnect call to not include the "new_link" option.

-- 
Postgresql & php tutorials
http://www.designmagick.com/
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.