473,396 Members | 2,033 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,396 software developers and data experts.

Display Errors is both On and Off

I have a website in which PHP errors are displayed, despite having them
configured to not display.

Here is a test file I created to explore this:

<?php
echo ini_get( 'display_errors' );
phpInfo();
?>

The ini_get says "On", the phpInfo says "Off" (for display_errors in the PHP
Core section).

PHP 5.0.4

I'm struggling to understand how, at runtime, I get these conflicting
reports. The configuration files all say display_errors is OFF, and phpInfo
agrees, but PHP acts like they are on, and ini_get shows why.
Mar 19 '07 #1
4 7159
Dana Cartwright wrote:
I have a website in which PHP errors are displayed, despite having
them configured to not display.

Here is a test file I created to explore this:

<?php
echo ini_get( 'display_errors' );
phpInfo();
?>

The ini_get says "On", the phpInfo says "Off" (for display_errors in
the PHP Core section).

PHP 5.0.4

I'm struggling to understand how, at runtime, I get these conflicting
reports. The configuration files all say display_errors is OFF, and
phpInfo agrees, but PHP acts like they are on, and ini_get shows why.
In which column does the phpinfo() show the display_errors setting as
"Off"? "Local Value", "Master Value" or both?

--
Kim André Akerĝ
- ki******@NOSPAMbetadome.com
(remove NOSPAM to contact me directly)
Mar 19 '07 #2
Dana Cartwright wrote:
>
>I have a website in which PHP errors are displayed, despite having
them configured to not display.

Here is a test file I created to explore this:

<?php
echo ini_get( 'display_errors' );
phpInfo();
?>

The ini_get says "On", the phpInfo says "Off" (for display_errors in
the PHP Core section).

PHP 5.0.4

I'm struggling to understand how, at runtime, I get these conflicting
reports. The configuration files all say display_errors is OFF, and
phpInfo agrees, but PHP acts like they are on, and ini_get shows why.

In which column does the phpinfo() show the display_errors setting as
"Off"? "Local Value", "Master Value" or both?
Both "local" and "master" say Off.
--
Kim André Akerĝ
- ki******@NOSPAMbetadome.com
(remove NOSPAM to contact me directly)

Mar 19 '07 #3
Dana Cartwright wrote:
I have a website in which PHP errors are displayed, despite having them
configured to not display.
Have you used something like this in an .htaccess file?

php_value display_errors off

?? Boolean flags like display_errors should be set using "php_flag" instead
of "php_value".

--
Toby A Inkster BSc (Hons) ARCS
Contact Me ~ http://tobyinkster.co.uk/contact
Geek of ~ HTML/SQL/Perl/PHP/Python*/Apache/Linux

* = I'm getting there!
Mar 19 '07 #4
Dana Cartwright wrote:
I have a website in which PHP errors are displayed, despite having them
configured to not display.

Here is a test file I created to explore this:

<?php
echo ini_get( 'display_errors' );
phpInfo();
?>

The ini_get says "On", the phpInfo says "Off" (for display_errors in the PHP
Core section).

PHP 5.0.4

I'm struggling to understand how, at runtime, I get these conflicting
reports. The configuration files all say display_errors is OFF, and phpInfo
agrees, but PHP acts like they are on, and ini_get shows why.

First of all, are you editing the correct php.ini file? (Probably, but
it's always worth checking).

Next - do you have the php.ini file overridden in your .htaccess or
httpd.conf file?

--
==================
Remove the "x" from my email address
Jerry Stuckle
JDS Computer Training Corp.
js*******@attglobal.net
==================
Mar 19 '07 #5

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

12
by: austinJim | last post by:
IIS has quit displaying ASP errors it finds. Errors from SQL Server are displayed as are "page not found" errors but VBScript syntax errors are not. For example, the following code should give the...
1
by: Al Evans | last post by:
I'm sorry to barge right into a new newsgroup with a problem, but though I'm old to many things, I'm new to CSS. Here are two web pages. Apparently, they don't display correctly in IE6 under...
3
by: Steve - DND | last post by:
I was wondering if anyone can point me to some articles or practices they use for dealing with errors in their applications; particularly in an n-tier design. I am trying to find one way to...
2
by: rn5a | last post by:
The different Validation controls like RequiredFieldValidator, RangeValidator etc. have a property named Display. This property can have 3 values - Dynamic, Static & None. What's the difference...
2
by: * Tong * | last post by:
Hi, I'm wondering if you can show me an example php page that allows me to retrieve and display 3rd party pages. I.e., when my php script is called as http://site/path/getit.php?file_key it...
15
by: Matt | last post by:
Is there a way to display the file selection window for a file input field via JavaScript? My goal is to emulate the behavior seen in Yahoo! Mail BETA. When adding an attachment, it displays a...
4
ak1dnar
by: ak1dnar | last post by:
Hi, I have created a PHP page that write down form data to mySQL table. Before i submit data I want to check the Input field, whether it has filled up or Not. the form should validate from the PHP...
0
by: adubra | last post by:
Hi there, I am using a device context (DC) and a buffer to successfully draw to screen. However, when I update the DC at very high frame rate and drag the frame containing the image very quickly...
1
by: nitinpatel1117 | last post by:
I have display errors set to on in my php configuration. i only want to turn of display errors on one particular page/script i have tried to use the set_ini() and error_reporting() functions,...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.