<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<meta content="text/html;charset=ISO-8859-1" http-equiv="Content-Type">
</head>
<body bgcolor="#ffffff" text="#000000">
I have error_reporting off in the php.ini but have a function written <br>
<br>
function showError($param = E_ALL) {<br>
ini_set('display_errors',1);<br>
error_reporting($param);<br>
}<br>
<br>
Then I call this when I am troubleshooting<br>
I can change $param to what I want<br>
showError(E_ALL & ~E_NOTICE);<br>
with E_ALL being the default<br>
<br>
Mike<br>
<br>
<a class="moz-txt-link-abbreviated" href="mailto:ciapug-request@cialug.org">ciapug-request@cialug.org</a> wrote:
<blockquote cite="mid20070308180004.3D6718210@www.cialug.org"
type="cite">
<pre wrap="">Send ciapug mailing list submissions to
        <a class="moz-txt-link-abbreviated" href="mailto:ciapug@cialug.org">ciapug@cialug.org</a>
To subscribe or unsubscribe via the World Wide Web, visit
        <a class="moz-txt-link-freetext" href="http://cialug.org/mailman/listinfo/ciapug">http://cialug.org/mailman/listinfo/ciapug</a>
or, via email, send a message with subject or body 'help' to
        <a class="moz-txt-link-abbreviated" href="mailto:ciapug-request@cialug.org">ciapug-request@cialug.org</a>
You can reach the person managing the list at
        <a class="moz-txt-link-abbreviated" href="mailto:ciapug-owner@cialug.org">ciapug-owner@cialug.org</a>
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 (<a class="moz-txt-link-abbreviated" href="mailto:carl-olsen@mchsi.com">carl-olsen@mchsi.com</a>)
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: <a class="moz-txt-link-abbreviated" href="mailto:carl-olsen@mchsi.com">carl-olsen@mchsi.com</a>
Subject: [ciapug] Apache 2.x and PHP 5 on Windows
To: <a class="moz-txt-link-abbreviated" href="mailto:ciapug@cialug.org">ciapug@cialug.org</a>
Message-ID:
        <a class="moz-txt-link-rfc2396E" href="mailto:030820071702.2451.45F0419F000A6C7A00000993219791280203010CD2079C080C03BF020A9C0401D3049D0E0C@mchsi.com"><030820071702.2451.45F0419F000A6C7A00000993219791280203010CD2079C080C03BF020A9C0401D3049D0E0C@mchsi.com></a>
        
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 <a class="moz-txt-link-rfc2396E" href="mailto:dchampion@visionary.com"><dchampion@visionary.com></a>
Subject: Re: [ciapug] Apache 2.x and PHP 5 on Windows
To: <a class="moz-txt-link-abbreviated" href="mailto:ciapug@cialug.org">ciapug@cialug.org</a>
Message-ID: <a class="moz-txt-link-rfc2396E" href="mailto:45F04475.7040508@visionary.com"><45F04475.7040508@visionary.com></a>
Content-Type: text/plain; charset=ISO-8859-1; format=flowed
<a class="moz-txt-link-abbreviated" href="mailto:carl-olsen@mchsi.com">carl-olsen@mchsi.com</a> wrote:
</pre>
<blockquote type="cite">
<pre wrap="">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
</pre>
</blockquote>
<pre wrap=""><!---->
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 <a class="moz-txt-link-rfc2396E" href="mailto:tony@tonybibbs.com"><tony@tonybibbs.com></a>
Subject: Re: [ciapug] Apache 2.x and PHP 5 on Windows
To: <a class="moz-txt-link-abbreviated" href="mailto:ciapug@cialug.org">ciapug@cialug.org</a>
Message-ID: <a class="moz-txt-link-rfc2396E" href="mailto:45F04B91.2040601@tonybibbs.com"><45F04B91.2040601@tonybibbs.com></a>
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:
</pre>
<blockquote type="cite">
<pre wrap="">What's your php.ini setting? On a development environment you probably
want:
error_reporting = E_ALL & ~E_NOTICE
-dc
</pre>
</blockquote>
<pre wrap=""><!---->
------------------------------
_______________________________________________
ciapug mailing list
<a class="moz-txt-link-abbreviated" href="mailto:ciapug@cialug.org">ciapug@cialug.org</a>
<a class="moz-txt-link-freetext" href="http://cialug.org/mailman/listinfo/ciapug">http://cialug.org/mailman/listinfo/ciapug</a>
End of ciapug Digest, Vol 22, Issue 1
*************************************
</pre>
</blockquote>
<br>
<br>
<pre class="moz-signature" cols="72">--
<><><><><><><><><><><><><><><><><>
Mike Parks
Captain Jack Communications
WebSite Development and Hosting
<a class="moz-txt-link-abbreviated" href="http://www.captainjack.com">www.captainjack.com</a>
Phone: 515-964-8500
Fax: 515-964-4685</pre>
</body>
</html>