ID: 44708
User updated by: pinnwilliam at yahoo dot com
Reported By: pinnwilliam at yahoo dot com
Status: Bogus
Bug Type: *General Issues
Operating System: Windows XP
PHP Version: 5.2.5
Assigned To: fb-req-jani
New Comment:
Hi again, I figured out a solution that you might pass on. The php.ini
file should be placed in the following path: C:\PHP\php.ini. Restart
the server, and it WORKS! c:\windows\ is the wrong directory to place
the php.ini file in--at least for Windows XP.
Previous Comments:
------------------------------------------------------------------------
[2008-04-13 16:46:09] pinnwilliam at yahoo dot com
Sorry for the confusion. The php.ini file was placed in the windows
directory. I thought I had made that clear. The phpinfo() is not
reading it for some reason. I restarted the server and computer.
Thoses acts did not solve the problem.
There is definitely a bug. I followed all instructions to the letter
and then some. Happy debugging. :-)
------------------------------------------------------------------------
[2008-04-13 11:35:45] jani@php.net
You need to put a file called "php.ini" in c:\windows\
This is not any bug, so please ask further support questions elsewhere.
------------------------------------------------------------------------
[2008-04-13 05:13:59] pinnwilliam at yahoo dot com
The path for php.ini is C:\WINDOWS\php.ini. I ran the phpinfo()
function. The path for php.ini appears to be correct. However, the
phpinfo output says, "Loaded Configuration File: (none)."
How do I get php.ini to load, or get phpinfo() to read it and display
it?
------------------------------------------------------------------------
[2008-04-12 22:28:29] jani@php.net
First of all: make sure your php.ini file is actually loaded.
"display_errors" is On by default (IIRC) so if no php.ini (or wrong!) is
loaded you'll see the errors.
To check what php.ini was used: <?php phpinfo(); ?> and there's the
information in the first block. Path where it's looked for and below
that what file exactly was loaded.
------------------------------------------------------------------------
[2008-04-12 21:13:00] pinnwilliam at yahoo dot com
Description:
------------
I am using Apache server 2.2 and PHP 5. I was able to turn on "display
errors" in the php.ini file, but when I attemped to shut "display
errors" off, i.e., "display_errors = Off," errors still display on the
.php files. I have restarted the server and computer. Doing these
things does not solve the problem.
Reproduce code:
---------------
display_errors = Off
Expected result:
----------------
Errors won't display on the .php page.
Actual result:
--------------
Errors continue to show on the .php page.
------------------------------------------------------------------------
--
Edit this bug report at http://bugs.php.net/?id=44708&edit=1