[ciapug] Apache 2.x and PHP 5 on Windows

David Champion dchampion at visionary.com
Thu Mar 8 13:43:38 CST 2007


Are you sure it's reading your php.ini?

Try doing a phpinfo() and check to see if it has the correct path to 
your .ini file, and that it reflects your settings.

-dc

carl-olsen at mchsi.com wrote:
> Oops.  I added the function, but forgot to call it.  That actually worked and now I'm getting the error messages.
> 
> Thanks Mike!
> 
> Carl
> 
>  -------------- Original message ----------------------
> From: Mike Parks <mparks at captainjack.com>
>> I have error_reporting off in the php.ini but have a function written
>>
>> function showError($param = E_ALL) {
>>     ini_set('display_errors',1);
>>     error_reporting($param);
>> }
>>
>> Then I call this when I am troubleshooting
>> I can change $param to what I want
>> showError(E_ALL & ~E_NOTICE);
>> with E_ALL being the default
>>
>> Mike
>>
>> ciapug-request at cialug.org wrote:
>>> Send ciapug mailing list submissions to
>>> 	ciapug at cialug.org
>>>
>>> To subscribe or unsubscribe via the World Wide Web, visit
>>> 	http://cialug.org/mailman/listinfo/ciapug
>>> or, via email, send a message with subject or body 'help' to
>>> 	ciapug-request at cialug.org
>>>
>>> You can reach the person managing the list at
>>> 	ciapug-owner at cialug.org
>>>
>>> When replying, please edit your Subject line so it is more specific
>>> than "Re: Contents of ciapug digest..."
>>>
>>>
>>> Today's Topics:
>>>
>>>    1. Apache 2.x and PHP 5 on Windows (carl-olsen at mchsi.com)
>>>    2. Re: Apache 2.x and PHP 5 on Windows (David Champion)
>>>    3. Re: Apache 2.x and PHP 5 on Windows (Tony Bibbs)
>>>
>>>
>>> ----------------------------------------------------------------------
>>>
>>> Message: 1
>>> Date: Thu, 08 Mar 2007 17:02:23 +0000
>>> From: carl-olsen at mchsi.com
>>> Subject: [ciapug] Apache 2.x and PHP 5 on Windows
>>> To: ciapug at cialug.org
>>> Message-ID:
>>> 	
>> <030820071702.2451.45F0419F000A6C7A00000993219791280203010CD2079C080C03BF020A9C0
>> 401D3049D0E0C at mchsi.com>
>>> 	
>>>
>>> I'm not getting any error messages when I deliberately introduce errors into 
>> my PHP code.  I have the php.ini file set to show all errors and notices and the 
>> httpd.conf file is set to the location of the php.ini file.  I'm running Apache 
>> 2.2.x on Windows XP and PHP 5.1.x (Apache/2.2.3 (Win32) PHP/5.1.4).  Can anyone 
>> tell me why it will not display the errors?
>>> Carl Olsen
>>> Drake University
>>>
>>>
>>> ------------------------------
>>>
>>> Message: 2
>>> Date: Thu, 08 Mar 2007 11:14:29 -0600
>>> From: David Champion <dchampion at visionary.com>
>>> Subject: Re: [ciapug] Apache 2.x and PHP 5 on Windows
>>> To: ciapug at cialug.org
>>> Message-ID: <45F04475.7040508 at visionary.com>
>>> Content-Type: text/plain; charset=ISO-8859-1; format=flowed
>>>
>>> carl-olsen at mchsi.com wrote:
>>>   
>>>> I'm not getting any error messages when I deliberately introduce errors into 
>> my PHP code.  I have the php.ini file set to show all errors and notices and the 
>> httpd.conf file is set to the location of the php.ini file.  I'm running Apache 
>> 2.2.x on Windows XP and PHP 5.1.x (Apache/2.2.3 (Win32) PHP/5.1.4).  Can anyone 
>> tell me why it will not display the errors?
>>>> Carl Olsen
>>>> Drake University
>>>>     
>>> What's your php.ini setting? On a development environment you probably want:
>>>
>>> error_reporting  =  E_ALL & ~E_NOTICE
>>>
>>> -dc
>>>
>>>
>>>
>>>
>>> ------------------------------
>>>
>>> Message: 3
>>> Date: Thu, 08 Mar 2007 11:44:49 -0600
>>> From: Tony Bibbs <tony at tonybibbs.com>
>>> Subject: Re: [ciapug] Apache 2.x and PHP 5 on Windows
>>> To: ciapug at cialug.org
>>> Message-ID: <45F04B91.2040601 at tonybibbs.com>
>>> Content-Type: text/plain; charset=ISO-8859-1; format=flowed
>>>
>>> There are a few settings you need:
>>>
>>> error_reporting = E_ALL (and possibly ~E_NOTICE, if you don't want them)
>>> display_errors = On
>>>
>>> and the one most people forget:
>>>
>>> log_errors = On
>>>
>>> --Tony
>>>
>>> David Champion wrote:
>>>   
>>>> What's your php.ini setting? On a development environment you probably 
>>>> want:
>>>>
>>>> error_reporting  =  E_ALL & ~E_NOTICE
>>>>
>>>> -dc
>>>>     
>>>
>>>
>>> ------------------------------
>>>
>>> _______________________________________________
>>> ciapug mailing list
>>> ciapug at cialug.org
>>> http://cialug.org/mailman/listinfo/ciapug
>>>
>>>
>>> End of ciapug Digest, Vol 22, Issue 1
>>> *************************************
>>>
>>>   
>>
>> -- 
>> <><><><><><><><><><><><><><><><><>
>> Mike Parks
>> Captain Jack Communications
>> WebSite Development and Hosting
>> www.captainjack.com
>> Phone: 515-964-8500
>> Fax: 515-964-4685
>>
> 
> 
> 
> 
> ------------------------------------------------------------------------
> 
> Subject:
> Re: Re: [ciapug] Apache 2.x and PHP 5 on Windows
> From:
> Mike Parks <mparks at captainjack.com>
> Date:
> Thu, 8 Mar 2007 18:52:45 +0000
> To:
> ciapug at cialug.org
> 
> To:
> ciapug at cialug.org
> 
> 
> I have error_reporting off in the php.ini but have a function written
> 
> function showError($param = E_ALL) {
>    ini_set('display_errors',1);
>    error_reporting($param);
> }
> 
> Then I call this when I am troubleshooting
> I can change $param to what I want
> showError(E_ALL & ~E_NOTICE);
> with E_ALL being the default
> 
> Mike
> 
> ciapug-request at cialug.org wrote:
>> Send ciapug mailing list submissions to
>>     ciapug at cialug.org
>>
>> To subscribe or unsubscribe via the World Wide Web, visit
>>     http://cialug.org/mailman/listinfo/ciapug
>> or, via email, send a message with subject or body 'help' to
>>     ciapug-request at cialug.org
>>
>> You can reach the person managing the list at
>>     ciapug-owner at cialug.org
>>
>> When replying, please edit your Subject line so it is more specific
>> than "Re: Contents of ciapug digest..."
>>
>>
>> Today's Topics:
>>
>>    1. Apache 2.x and PHP 5 on Windows (carl-olsen at mchsi.com)
>>    2. Re: Apache 2.x and PHP 5 on Windows (David Champion)
>>    3. Re: Apache 2.x and PHP 5 on Windows (Tony Bibbs)
>>
>>
>> ----------------------------------------------------------------------
>>
>> Message: 1
>> Date: Thu, 08 Mar 2007 17:02:23 +0000
>> From: carl-olsen at mchsi.com
>> Subject: [ciapug] Apache 2.x and PHP 5 on Windows
>> To: ciapug at cialug.org
>> Message-ID:
>>     <030820071702.2451.45F0419F000A6C7A00000993219791280203010CD2079C080C03BF020A9C0401D3049D0E0C at mchsi.com> 
>>
>>     
>>
>> I'm not getting any error messages when I deliberately introduce 
>> errors into my PHP code.  I have the php.ini file set to show all 
>> errors and notices and the httpd.conf file is set to the location of 
>> the php.ini file.  I'm running Apache 2.2.x on Windows XP and PHP 
>> 5.1.x (Apache/2.2.3 (Win32) PHP/5.1.4).  Can anyone tell me why it 
>> will not display the errors?
>>
>> Carl Olsen
>> Drake University
>>
>>
>> ------------------------------
>>
>> Message: 2
>> Date: Thu, 08 Mar 2007 11:14:29 -0600
>> From: David Champion <dchampion at visionary.com>
>> Subject: Re: [ciapug] Apache 2.x and PHP 5 on Windows
>> To: ciapug at cialug.org
>> Message-ID: <45F04475.7040508 at visionary.com>
>> Content-Type: text/plain; charset=ISO-8859-1; format=flowed
>>
>> carl-olsen at mchsi.com wrote:
>>  
>>> I'm not getting any error messages when I deliberately introduce 
>>> errors into my PHP code.  I have the php.ini file set to show all 
>>> errors and notices and the httpd.conf file is set to the location of 
>>> the php.ini file.  I'm running Apache 2.2.x on Windows XP and PHP 
>>> 5.1.x (Apache/2.2.3 (Win32) PHP/5.1.4).  Can anyone tell me why it 
>>> will not display the errors?
>>>
>>> Carl Olsen
>>> Drake University
>>>     
>>
>> What's your php.ini setting? On a development environment you probably 
>> want:
>>
>> error_reporting  =  E_ALL & ~E_NOTICE
>>
>> -dc
>>
>>
>>
>>
>> ------------------------------
>>
>> Message: 3
>> Date: Thu, 08 Mar 2007 11:44:49 -0600
>> From: Tony Bibbs <tony at tonybibbs.com>
>> Subject: Re: [ciapug] Apache 2.x and PHP 5 on Windows
>> To: ciapug at cialug.org
>> Message-ID: <45F04B91.2040601 at tonybibbs.com>
>> Content-Type: text/plain; charset=ISO-8859-1; format=flowed
>>
>> There are a few settings you need:
>>
>> error_reporting = E_ALL (and possibly ~E_NOTICE, if you don't want them)
>> display_errors = On
>>
>> and the one most people forget:
>>
>> log_errors = On
>>
>> --Tony
>>
>> David Champion wrote:
>>  
>>> What's your php.ini setting? On a development environment you 
>>> probably want:
>>>
>>> error_reporting  =  E_ALL & ~E_NOTICE
>>>
>>> -dc
>>>     
>>
>>
>>
>> ------------------------------
>>
>> _______________________________________________
>> ciapug mailing list
>> ciapug at cialug.org
>> http://cialug.org/mailman/listinfo/ciapug
>>
>>
>> End of ciapug Digest, Vol 22, Issue 1
>> *************************************
>>
>>   
> 
> 
> 
> ------------------------------------------------------------------------
> 
> _______________________________________________
> ciapug mailing list
> ciapug at cialug.org
> http://cialug.org/mailman/listinfo/ciapug
> 
> 
> ------------------------------------------------------------------------
> 
> _______________________________________________
> ciapug mailing list
> ciapug at cialug.org
> http://cialug.org/mailman/listinfo/ciapug




More information about the ciapug mailing list