473,399 Members | 3,038 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,399 software developers and data experts.

php error handling with apache

hi. php has error handling and that's great. but it can't handle
serious errors like E_PARSE. set_error_handler nor
register_shutdown_function can't handle this. is there any other way
to do this with php? or maybe that may be done somehow with apache?
thank you. sorry, if this should be in apache conf...
Oct 31 '08 #1
5 1701
Rytis wrote:
hi. php has error handling and that's great. but it can't handle
serious errors like E_PARSE. set_error_handler nor
register_shutdown_function can't handle this. is there any other way
to do this with php? or maybe that may be done somehow with apache?
thank you. sorry, if this should be in apache conf...
AFAIK, syntax errors are fatal in any language, and there's no way to
handle those errors.

It's why you need a development system - to get the bugs out before
making it public.


--
==================
Remove the "x" from my email address
Jerry Stuckle
JDS Computer Training Corp.
js*******@attglobal.net
==================

Oct 31 '08 #2
Jerry Stuckle wrote:
AFAIK, syntax errors are fatal in any language, and there's no way to
handle those errors.
Hmm, not really. See HTML: HTML parsers can recover gracefully from badly
terminated code.

It really depends on the compiler (or interpreter). However, developing a
grammar which can recover from errors is more difficult than one which
can't.
That said, if you're getting E_PARSE fatal errors, there is no way around
it. Fix your code, dammit!

--
----------------------------------
Iván Sánchez Ortega -ivan-algarroba-sanchezortega-punto-es-

Un ordenador no es un televisor ni un microondas, es una herramienta
compleja.
Oct 31 '08 #3
Iván Sánchez Ortega wrote:
Jerry Stuckle wrote:
>AFAIK, syntax errors are fatal in any language, and there's no way to
handle those errors.

Hmm, not really. See HTML: HTML parsers can recover gracefully from badly
terminated code.
HTML is not a language.
It really depends on the compiler (or interpreter). However, developing a
grammar which can recover from errors is more difficult than one which
can't.
That said, if you're getting E_PARSE fatal errors, there is no way around
it. Fix your code, dammit!
--
==================
Remove the "x" from my email address
Jerry Stuckle
JDS Computer Training Corp.
js*******@attglobal.net
==================

Oct 31 '08 #4
In news:ge**********@registered.motzarella.org,
Jerry Stuckle <js*******@attglobal.nettyped:
HTML is not a language.
What does the "L" in HTML represent?
Oct 31 '08 #5
On Fri, 31 Oct 2008 12:33:18 -0700, "b.jeswine" <me@privacy.netwrote
in <ge**********@aioe.org>:
>In news:ge**********@registered.motzarella.org,
Jerry Stuckle <js*******@attglobal.nettyped:
>HTML is not a language.

What does the "L" in HTML represent?
I think that it would be more accurate to say that HTML is not a
programming language, which is likely what Jerry meant.
--
Charles Calvert | Web-site Design/Development
Celtic Wolf, Inc. | Software Design/Development
http://www.celticwolf.com/ | Data Conversion
(703) 580-0210 | Project Management
Oct 31 '08 #6

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

Similar topics

12
by: Xeon | last post by:
Hi, Is there anyway to set a custom error handler which is actually a method of a class? i.e. setting the method eh() of class foo as error handler in the snippet below. class foo { function...
5
by: simonc | last post by:
I've been programming in assembler and C/C++ for a number of years, but I'm only just starting down the road of PHP & MYSQL. I have a couple of questions: (1) Before I start writing my own...
1
by: Wayno | last post by:
My php logs are coming up empty. I have done all I can think of, and all that made sense to me. Can someone take a look at my php.ini please and tell me what you think may be the problem. I...
2
by: Xiao Tencas | last post by:
When trying to load a png image in GD, I get the error (Mozilla Firefox) "cannot display image, because it contains errors"; IE just shows an empty 'image-error' box. When loading a large enough...
4
by: skeeterbug | last post by:
i can't get errors to print to my browser. i went to php.ini and set... display_errors = On and error_reporting = E_ALL | E_STRICT
1
by: Mike | last post by:
Last weekend I decided to install Apache 2.0.53-win32-x86-no_ssl PHP 5.0.3 Smarty 2.6.7 MySQL essential-4.1.10-win32 I have Apache up (Port 80 blocked at the router and firewall!) and I have...
0
by: Jagdeesh | last post by:
Hai Colleagues, I am using Tomcat 4.1.24 and JDK 1.4.0_03 in my winXP machine. I've transferred a set of folders(containing jsp files) into tomcat's webapps directory(to /webapps/bob ,...
2
by: PapaBear | last post by:
Hi y'all, I'm handling Apache errors through seperate shtml files. That surely looks better than the standard error pages by the browser etc. I did this by coding in httpd.conf lines like: ...
2
by: nesster13 | last post by:
I have installed Apache and PHP 5 on my machine. I have use Smarty and Pear to help me with the general template of my page. I was able to have a page loaded onto the my browser with not error but...
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...
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
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,...
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
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,...

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.