473,403 Members | 2,338 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,403 software developers and data experts.

Want to display errors, server admin disagrees

I'm currently working with a server with error reporting level 0,
which is good if this was purely a production server. It's not. I have
fourty students trying to learn php programming on this server and
displaying errors will be a good thing in a learning situation.

Is there any way to override the error reporing level set by the
server admin? I do not have access to php.ini and server admin will
never agree upon changing error reporting level for the server.

I tried error_reporting(E_ALL) and ini_set('display_errors', 1)
without success.
What to do?

Sep 15 '07 #1
4 2487
You can set your own error handler. Look at

http://uk.php.net/set_error_handler

an example:

$oldErrorHandler = '';

function myErrorHandler($errNo,$errStr,$errFile,$errLine,$e rrContext){

echo "Error: $errStr in $errFile on line $errLine";

}

$oldErrorhandler = set_error_handler("myErrorHandler");

Sep 15 '07 #2
On Sat, 15 Sep 2007 14:26:04 +0200, Siv Hansen <si********@gmail.com>
wrote:
I'm currently working with a server with error reporting level 0,
which is good if this was purely a production server. It's not. I have
fourty students trying to learn php programming on this server and
displaying errors will be a good thing in a learning situation.

Is there any way to override the error reporing level set by the
server admin? I do not have access to php.ini and server admin will
never agree upon changing error reporting level for the server.

I tried error_reporting(E_ALL) and ini_set('display_errors', 1)
without success.
That should work. If it's a shared server, and most of the time
error_reporting should be off, save for a few domains, I'd use Apaches
httpd.conf to alter the settings for the specific domains using php_flag &
php_value.
--
Rik Wasmus
Sep 15 '07 #3
Siv Hansen wrote:
I'm currently working with a server with error reporting level 0,
which is good if this was purely a production server. It's not. I have
fourty students trying to learn php programming on this server and
displaying errors will be a good thing in a learning situation.

Is there any way to override the error reporing level set by the
server admin? I do not have access to php.ini and server admin will
never agree upon changing error reporting level for the server.

I tried error_reporting(E_ALL) and ini_set('display_errors', 1)
without success.
What to do?
If this server is used for training, it should not be used as a
production server, also. There are too many things students can do to
bring it down. Plus, often you want to be able to change settings on a
training server for training purposes.

I always keep my training servers separate from production. Servers
aren't that expensive, and you really don't need the biggest and fastest.

--
==================
Remove the "x" from my email address
Jerry Stuckle
JDS Computer Training Corp.
js*******@attglobal.net
==================
Sep 15 '07 #4
Siv Hansen wrote:
I'm currently working with a server with error reporting level 0,
which is good if this was purely a production server. It's not. I have
fourty students trying to learn php programming on this server and
displaying errors will be a good thing in a learning situation.

Is there any way to override the error reporing level set by the
server admin? I do not have access to php.ini and server admin will
never agree upon changing error reporting level for the server.

I tried error_reporting(E_ALL) and ini_set('display_errors', 1)
without success.

What to do?
Sorry Siv, but it looks like you're trying to find a technical solution
to a political problem.

If you can outsource away from your current provider, $25US/mo should
get you a hosting provider who will do what you want.
Sep 15 '07 #5

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

Similar topics

2
by: Rootshell | last post by:
I need to create the table and I want to edit its content from www level. Here is some example: http://www.rootshell.be/~flash44 There is a table. Is there possibilty to edit the content...
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: paul_tomlin | last post by:
We connect via terminal services to an excel spreadsheet that has an ODBC link to an access database using a pivot table, when we try to refresh the data within the excel spreadsheet we receive the...
14
by: John Spiegel | last post by:
Hi all, I'm missing something, probably stupid, on connecting to a SQL Server database from an aspx file. I haven't really done much w/ SQL Server and suspect that it's a problem on that side. ...
4
by: Brian Lowe | last post by:
I'm using Forms authentication with my user data in a SQL db. I have pages in the main appliaction folder accessible to anonymous users and I've set security to deny annonymous users access to...
11
by: Joe | last post by:
Hello All, I have an ASP.NET page with one Textbox (SearchTextBox) and one ImageButton (SearchButton) server controls. The user can type search text in SearchTextBox and click SearchButton and...
0
by: robpimentel | last post by:
Hi, I've been using DB2 for about 1 week, so please bear with me. DB2 Connect Enterprise Edition v8.1 FixPack 5 Windows Server 2003 Standard Edition SP1 Here is an error that continues to...
0
by: mvsguy | last post by:
Haw anyone seen the following error under the z/OS DB2 Administration Server? BPXF024I (DASUSER) CEE0454S The message number 9512 could not be 102 found for facility ID CLB. (It appears "102" in...
1
by: Swagener | last post by:
The aim is to get it working on this machine so I can port everything to a Enterprise Version but can't get around this error for the last two days. Any help is much appreciated, as I am not...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
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: 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
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
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...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 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 a new...

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.