Re: [PHP] Re: difference between shared and /usr/bin/mysql

2003-01-15 Thread Marco Tabini
On Wed, 2003-01-15 at 09:36, Leon Mergen wrote:
> Somebody correct me if I'm wrong, but from what I know is that when using
> shared it is compiled as a shared object and only loaded when needed. This
> decreases ram usage (which is good) , but increases load (which is bad) .

AFAIK, you should use a shared module when you're also using other
Apache modules that interface to MySQL. When you ./configure the PHP
interpreter, you get this info:

| You chose to compile PHP with the built-in MySQL support.  If you  |
| are compiling a server module, and intend to use other server  |
| modules that also use MySQL (e.g, mod_auth_mysql, PHP 3.0, |
| mod_perl) you must NOT rely on PHP's built-in MySQL support, and   |
| instead build it with your local MySQL support files, by adding|
| --with-mysql=/path/to/mysql to your configure line.|

Cheers,


Marco
-- 

php|architect - The Monthly Magazine for PHP Professionals
Come check us out on the web at http://www.phparch.com!


-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php




[PHP] Re: difference between shared and /usr/bin/mysql

2003-01-15 Thread Leon Mergen

"Gamin" <[EMAIL PROTECTED]> wrote in message
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
> ./configure --with-mysql=shared
> ./configure --with-mysql=/usr/bin/mysql
> What are the advantages/disadvatages of using either.

Somebody correct me if I'm wrong, but from what I know is that when using
shared it is compiled as a shared object and only loaded when needed. This
decreases ram usage (which is good) , but increases load (which is bad) .

If you have a few spare kb's of ram, I wouldn't recommend using shared...



-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php