Hi,
I'm not getting any error messages for my incorrect php code, and it's
making it very difficult to debug. Instead of an error, the page
displays part of the generated html (without the part that should have
been produced by the defective code), but no error.
I have already tried making the following settings in php.ini:
display_errors = On
error_reporting = E_ALL & ~E_NOTICE
To no avail. Is there anything else I can do. I'm working locally
doing development, and would like all error messages displayed without
exception.
Thanks for any info,
lurisia 4 6001
lurisia wrote: Hi,
I'm not getting any error messages for my incorrect php code, and it's making it very difficult to debug. Instead of an error, the page displays part of the generated html (without the part that should have been produced by the defective code), but no error.
I have already tried making the following settings in php.ini:
display_errors = On error_reporting = E_ALL & ~E_NOTICE
To no avail. Is there anything else I can do. I'm working locally doing development, and would like all error messages displayed without exception.
Thanks for any info, lurisia
Well for all errors
error_reporting = E_ALL
should be set
error_reporting = E_ALL & ~E_NOTICE
means all errors apart from notices.
~Cameron
Cameron,
Thanks for the info, though that didn't fix it. However, I did figure
out (just by scanning the code) what the error was which is not
getting reported. I left out the opening parentheses of an if
statement. Is it possible that php can't figure out what that error
is and therefore can't report? Seems unlikely, but I'm stumped as to
why that is coming up as an error. Any other ideas?
Thanks again,
Lurisia
On Sun, 01 Feb 2004 19:47:46 +0000, Cameron <fo*@bar.invalid> wrote: Well for all errors
error_reporting = E_ALL
should be set
error_reporting = E_ALL & ~E_NOTICE
means all errors apart from notices.
~Cameron
On Sun, 01 Feb 2004 18:42:34 GMT, lurisia <he***@hello.com> wrote: I'm not getting any error messages for my incorrect php code, and it's making it very difficult to debug. Instead of an error, the page displays part of the generated html (without the part that should have been produced by the defective code), but no error.
I have already tried making the following settings in php.ini:
display_errors = On error_reporting = E_ALL & ~E_NOTICE
To no avail. Is there anything else I can do. I'm working locally doing development, and would like all error messages displayed without exception.
Find what PHP thinks error_reporting and display_errors are set to, using
phpinfo(). It may not be reading the php.ini file you modified.
Also set error_reporting to E_ALL during development.
--
Andy Hassall <an**@andyh.co.uk> / Space: disk usage analysis tool
<http://www.andyh.co.uk> / <http://www.andyhsoftware.co.uk/space>
Andy,
That was it. I was changing a backup copy of php.ini rather than the
one in "C:\WINDOWS". Thank you very much.
Lurisia
On Sun, 01 Feb 2004 20:49:45 +0000, Andy Hassall <an**@andyh.co.uk>
wrote: Find what PHP thinks error_reporting and display_errors are set to, using phpinfo(). It may not be reading the php.ini file you modified.
Also set error_reporting to E_ALL during development. This thread has been closed and replies have been disabled. Please start a new discussion. Similar topics
by: Seagull Manager |
last post by:
Running Apache 1.3, PHP 4.3, and WinXP, configured acc. to instructions on
apache manual and php manual (as far as I can see), but getting "internal
server error" in browser... log says "Premature...
|
by: Martin |
last post by:
I am a PHP newbie (just got my "Hello World" page working this
morning). I'm doing some R&D work to see if PHP is viable for a
situation I have. To accomplish what I want to do, I have to have the...
|
by: Rod |
last post by:
I have been working with ASP.NET 1.1 for quite a while now. For some
reason, opening some ASP.NET applications we wrote is producing the
following error message:
"The Web server reported...
|
by: Marc Scheuner |
last post by:
Folks,
I'd really like to use log4net for our error logging, but I'm having
two problems:
1) For certain cases, I'd like to log error and messages to text
files. I tried both the regular...
|
by: Marc Scheuner |
last post by:
Folks,
I'd really like to use log4net for our error logging, but I'm having
two problems:
1) For certain cases, I'd like to log error and messages to text
files. I tried both the regular...
|
by: sshankar |
last post by:
Hi,
New to Stored procedure. Basically just installed DB2 v8.1.0.36
Was trying to build a stored procedure.. It is giving following error..
Looks like some error related to configuration...
|
by: sesling |
last post by:
Our Database stores event messages in a table called eventnotifications. The table has a message type column. There are two types of messages (alert or info). I have created a form that includes a...
|
by: Lance Wynn |
last post by:
One of my server has been compromised from this virus, and I can't seem to
block it out! I have shut down the infected server, but I need to figure
out how to check for this, and stop it.
The...
|
by: imaloner |
last post by:
I am posting two threads because I have two different problems, but both have the same background information.
Common Background Information:
I am trying to rebuild code for a working,...
|
by: aa123db |
last post by:
Variable and constants
Use var or let for variables and const fror constants.
Var foo ='bar';
Let foo ='bar';const baz ='bar';
Functions
function $name$ ($parameters$) {
}
...
|
by: ryjfgjl |
last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
|
by: ryjfgjl |
last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
|
by: emmanuelkatto |
last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud.
Please let me know.
Thanks!
Emmanuel
|
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...
|
by: nemocccc |
last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
|
by: Sonnysonu |
last post by:
This is the data of csv file
1 2 3
1 2 3
1 2 3
1 2 3
2 3
2 3
3
the lengths should be different i have to store the data by column-wise with in the specific length.
suppose the i have to...
|
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,...
|
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...
| |