ID:               21783
 Updated by:       [EMAIL PROTECTED]
 Reported By:      danielc at analysisandsolutions dot com
-Status:           Open
+Status:           Assigned
 Bug Type:         Documentation problem
 Operating System: Any
 PHP Version:      4.3.0
-Assigned To:      
+Assigned To:      nlopess


Previous Comments:
------------------------------------------------------------------------

[2004-07-27 20:19:49] [EMAIL PROTECTED]

IMHO this should be closed when:

1) Every possible php-{SAPI}.ini name is listed
2) Where PHP looks for these, and in what order
3) Document every possible way to change this location,
   including at compile time.

Not sure why #22001 was closed but we'll leave it and focus on this one
as it's a smaller number :)

#3 may want to be a faq but it's important and a topic that PHP users
have wondered about for years.  In Apache 2 there is a PHPINIDir
setting that can be used, does anything similar exist in Apache 1?  In
Windows show how (or link to how) to set environment variables such as
PHPRC, PHPRC as a variable is currently documented.  Not sure about
IIS... --with-config-file-path should be mentioned on this list as
well.  There could be more settings, the above are what come to mind.

------------------------------------------------------------------------

[2004-07-27 18:54:05] [EMAIL PROTECTED]

This bug has been fixed in the documentation's XML sources. Since the
online and downloadable versions of the documentation need some time
to get updated, we would like to ask you to be a bit patient.

Thank you for the report, and for helping us make our documentation
better.

"If php-SAPI.ini exists (where SAPI is used SAPI, so the filename is
e.g. php-cli.ini or php-apache.ini), it's used instead of &php.ini;."

I added also cross-reference to features.commandline.

------------------------------------------------------------------------

[2003-07-15 08:11:14] phyre at rogers dot com

I note that there are different files (php-cli.ini) which isn't
documented as far as I can tell.  That's for that pointer folks.

  However, I believe that different directories are also quite
important.  Apache php.ini goes with apache config.  CLI should go in
/etc.  Thoughts?

------------------------------------------------------------------------

[2003-02-02 06:44:17] [EMAIL PROTECTED]

Information found in bug #22001 should be included when this bug report
is dealt with:

    http://bugs.php.net/22001

Pretty interesting stuff.

------------------------------------------------------------------------

[2003-01-20 21:25:40] danielc at analysisandsolutions dot com

The text I'd suggest is something along these lines.  I don't know the
complete inner workings of PHP, so tweak it to reflect reality.

On Unix systems, PHP uses the php.ini file specified when PHP was
compiled. On Windows systems, PHP uses the php.ini from the same
directory as the php.exe file you execute. This behavior can be
modified by using the -c switch or by setting the PHPRC environment
variable. See the <a href="configuration.php">Configuration</a> page
for more information.

Thanks,

--Dan

------------------------------------------------------------------------

The remainder of the comments for this report are too long. To view
the rest of the comments, please view the bug report online at
    http://bugs.php.net/21783

-- 
Edit this bug report at http://bugs.php.net/?id=21783&edit=1

Reply via email to