473,388 Members | 1,606 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,388 software developers and data experts.

displaying errors

Hello,

php_info(); for display_errors variable says: Off, Off. I tried the
error_reporting(E_ALL);, but nothing happens. If I have an error
somewhere, PHP just silently dies, no output whatsoever. Which variable
has to be set so that error_reporting() function works, but no
errors/warnings are displayed if the error_reporting() wasn't executed
(admins don't want to have display_errors On globally)? PHP Version is
4.3.3.

--
"Now the storm has passed over me
I'm left to drift on a dead calm sea
And watch her forever through the cracks in the beams
Nailed across the doorways of the bedrooms of my dreams"
Jul 17 '05 #1
2 1294
Nikola Skoric wrote:
Hello,

php_info(); for display_errors variable says: Off, Off. I tried the
error_reporting(E_ALL);, but nothing happens. If I have an error
somewhere, PHP just silently dies, no output whatsoever. Which variable
has to be set so that error_reporting() function works, but no
errors/warnings are displayed if the error_reporting() wasn't executed
(admins don't want to have display_errors On globally)? PHP Version is
4.3.3.


Nikola,

I've seen this when I had a syntax error in my PHP. Rather than
detecting the error, PHP silently crashes.

First, check your php.log file to see if there's anything there.
Sometimes I've seen things there that aren't displayed. If not, try
commenting out blocks of code until you get *something*.
--
==================
Remove the "x" from my email address
Jerry Stuckle
JDS Computer Training Corp.
js*******@attglobal.net
==================
Jul 17 '05 #2
By setting the display_errors directive.

ini_set('display_errors', 1);

Of course a fatal error, such as a parse error, will still be silent as
the code will never execute (hence the setting of display errors at
runtime won't execute) but other errors will show up. Also consider
setting it with .htaccess and/or simply ask the admin where the PHP
errors are logged and read that log (this is preferred anyways...)

Jul 17 '05 #3

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

Similar topics

5
by: TG | last post by:
Dear PHP Group, I have two forms that are used to collect user information. The first one takes user inputted values such as fullname, city, address etc. I want these values to display in the...
8
by: euang | last post by:
Hi, I have been using access 2000 for two years on WINDOWS NT to display dynamic aweb page using ASP My ISP has now changed to Windows 2003, and I am having major problems displaying...
14
by: Akbar | last post by:
Hey there, Big-time curiosity issue here... Here's the test code (it's not that long)... it's to display a large number of image links with captions, ideally pulled in from an external file...
33
by: LRW | last post by:
http://gto.ie-studios.net/index.php When you view the above site in IE, if the 1st of the three product images is tall enough to push the cell down a couple of pixels, IE somehow doesn't show...
20
by: Peter E. Granger | last post by:
I'm having a strange problem (or at least it seems strange to me) trying to display a MessageBox in a VC++ .NET forms application. If I put the call to MessageBox::Show in the form's .h file, it...
5
by: Helen | last post by:
Hi I'm using ASP.NET's standard validators to display error messages when people don't fill in required fields on my form. The error messages currently show as soon as the form is loaded, but...
0
by: Frawls | last post by:
Hi I recently got a new laptop with IE7 installed. I installed Visual Studio .Net 2003. My problem is that when i hit an exception in my C# code the ASP.Net error is Not Displaying in IE 7....
1
by: Bishop | last post by:
Any ideas on why this is happening or how I can fix it? For instance if I forget to declare a SQL Variable and assign it a value instead of telling me that it redirects to 404 page not found...
0
by: WebCM | last post by:
PDO offers 3 modes of displaying errors: - silent mode - no errors - warnings - Warning: - exceptions - Exception: Which of them is the fastest and the most adequate for applications like CMS...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
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...
0
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
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?
1
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...
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
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
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,...

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.