[PHP] compiling and php.ini

2002-07-11 Thread Michael Hall


I've just compiled PHP 4.2.1 with Apache 1.3.24 on RedHat 7.2. Everything
works just fine as usual. I've got a couple of queries, however.

I compiled with the --enable-magic-quotes option, then figured this was a
bad move as I've been caught out before with scripts that assume it is
on. So, I copied the php.ini-recommended file to php.ini, and now
phpinfo() tells me that magic_quotes_gpc and magic_quotes_runtime are off.

So, does compiling with --enable-magic-quotes have any effects if magic
quotes are turned off in php.ini? Are they really off?

Can all --enable-whatever options be turned on/off in php.ini,
regardless of ./configure options?

Does the -with-config-file-path option set the expected path to php.ini
(I always thought it was to Apache)? How come PHP still works whether the
file is there or not?

TIA  



Michael Hall [EMAIL PROTECTED]




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




Re: [PHP] compiling and php.ini

2002-07-11 Thread Tyler Longren

If you do:
--with-mysql, it can't be disabled in php.ini, however you can change
options in php.ini that deal with connecting to a mysql server.  If you
had copied the php.ini-dist file, your magic_quotes would probably have
been set to on.  I'm not sure if the php.ini-recommended gets updated
after running the configure script.

-- 
Tyler Longren
Captain Jack Communications
[EMAIL PROTECTED]
www.captainjack.com



On Fri, 12 Jul 2002 09:56:52 +0930 (CST)
Michael Hall [EMAIL PROTECTED] wrote:

 
 I've just compiled PHP 4.2.1 with Apache 1.3.24 on RedHat 7.2.
 Everything works just fine as usual. I've got a couple of queries,
 however.
 
 I compiled with the --enable-magic-quotes option, then figured this
 was a bad move as I've been caught out before with scripts that assume
 it is on. So, I copied the php.ini-recommended file to php.ini, and
 now phpinfo() tells me that magic_quotes_gpc and magic_quotes_runtime
 are off.
 
 So, does compiling with --enable-magic-quotes have any effects if
 magic quotes are turned off in php.ini? Are they really off?
 
 Can all --enable-whatever options be turned on/off in php.ini,
 regardless of ./configure options?
 
 Does the -with-config-file-path option set the expected path to
 php.ini(I always thought it was to Apache)? How come PHP still works
 whether the file is there or not?
 
 TIA  
 
 
 
 Michael Hall [EMAIL PROTECTED]
 
 
 
 
 -- 
 PHP General Mailing List (http://www.php.net/)
 To unsubscribe, visit: http://www.php.net/unsub.php
 

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