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

simple error trapping question

Hi. I was quite used to seeing all the lines and lines of error text, when I make a mistake.

I have moved to a server where all the error trapping has been sewn up tight (I assume in php.ini). Now that's great in the main direstories, that any errors don't splatter down the page.

However, in my development directory, I'm making mistakes and want to see them spalttered down the page, so I can see where I'm going wrong.

I've checked the documentation, and error_reporting(1); just isn't doing anything for me. Nor is display_errors(1);

I just want to tell PHP to let it all hang out. "I'm in development mode. I'm making mistakes. Yes I'm dumb. Tell me what's happening." But alas, PHP isn't understanding me.

Help !!
Oct 31 '06 #1
4 1635
ronverdonk
4,258 Expert 4TB
What does
Expand|Select|Wrap|Line Numbers
  1. error_reporting(E_ALL);
  2.  
for you?
See also Error handling and Logging functions

Ronald :cool:
Oct 31 '06 #2
Sorry, but it a very simple program still refuses me any output:

Expand|Select|Wrap|Line Numbers
  1. <?php
  2. error_reporting(E_ALL);
  3. crash
  4. ?>
What could be simpler? But I still get a blank screen.
Oct 31 '06 #3
No answers then? I've read all the PHP manual entries on errors and error trapping. I'm still none the wiser.

I want to counteract whatever has been set in php.ini and display my errors. Is this possible - yes or no?
Nov 1 '06 #4
ronverdonk
4,258 Expert 4TB
You'll have to talk to your provider. There must be some reason why it is set off (or just ignorance of the installer).

Ronald :cool:
Nov 1 '06 #5

Sign in to post your reply or Sign up for a free account.

Similar topics

5
by: PCL | last post by:
I am trying to get the value from a simple stored procedure - the Stored Procedure returns 1 record with one field - it is basically "Select Max(po) as MaxPo from PODB" I want to store that...
8
by: Pete | last post by:
I'm trying to improve my code so that when I open a recordset object, I can absolutely guarantee it is closed and is set = Nothing. I have read some old threads and they all say to use the...
3
by: Nathan Bloomfield | last post by:
Hi there, I am having difficulty with a piece of code which would work wonders for my application if only the error trapping worked properly. Basically, it works as follows: - adds records...
3
by: windandwaves | last post by:
Hi Gurus Does anyone know how I set the error trapping to option 2 in visual basic. I know that you can go to tools, options and then choose on unhandled errors only, but is there a VB command...
13
by: Thelma Lubkin | last post by:
I use code extensively; I probably overuse it. But I've been using error trapping very sparingly, and now I've been trapped by that. A form that works for me on the system I'm using, apparently...
3
by: Smriti Dev | last post by:
Hi There, I have the following code and when I try to run it, I get a type mismatch error. I would really appreciate your help with this. Thanks kindly, smriti --- Private Sub cmdOK_Click()
2
by: Captain Nemo | last post by:
I'm still using Office 2000 myself, but some of my clients have Office 2003. I've recently added a piece of code to create an instance of Word, open a document, fill in the blanks and become...
9
by: 47computers | last post by:
Pretty new to PHP, I recently started learning about error trapping. As of right now, I include the following into a page in my website: -------BEGIN PASTE-------- error_reporting(E_ERROR |...
2
hyperpau
by: hyperpau | last post by:
Before anything else, I am not a very technical expert when it comes to VBA coding. I learned most of what I know by the excellent Access/VBA forum from bytes.com (formerly thescripts.com). Ergo, I...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome former...
0
by: ryjfgjl | last post by:
In our work, we often need to import Excel data into databases (such as MySQL, SQL Server, Oracle) for data analysis and processing. Usually, we use database tools like Navicat or the Excel import...
0
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$) { } ...
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: 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...
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
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...

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.