Closed Thread Icon

Topic awaiting preservation: PHP Errors Pages that link to <a href="https://ozoneasylum.com/backlink?for=12932" title="Pages that link to Topic awaiting preservation: PHP Errors" rel="nofollow" >Topic awaiting preservation: PHP Errors\

 
Author Thread
quisja
Paranoid (IV) Inmate

From: everywhere
Insane since: Jun 2002

posted posted 10-13-2003 23:14

Is there any way to force PHP to output valid XHTML when it reports errors? I don't want to set my own custom errors, but at the moment I've found it uses <br> instead of <br />, which can break a page. Thanks for your help...

Pugzly
Paranoid (IV) Inmate

From: 127.0.0.1
Insane since: Apr 2000

posted posted 10-14-2003 01:31

Not that I'm aware of. Although that shouldn't cause too much grief.

Just write code that doesn't generate errors!

bitdamaged
Maniac (V) Mad Scientist

From: 100101010011 <-- right about here
Insane since: Mar 2000

posted posted 10-14-2003 03:30

I'm not aware of any built in method for this.

That being said, you can capture all error reporting and output it anyway you like with the set_error_handler() function.



.:[ Never resist a perfect moment ]:.

[This message has been edited by bitdamaged (edited 10-14-2003).]

Tyberius Prime
Paranoid (IV) Mad Scientist with Finglongers

From: Germany
Insane since: Sep 2001

posted posted 10-14-2003 09:31

there is... it started doing it by default from a certain version on... annoyed the heck out of me - look into your php.in.

Tyberius Prime
Paranoid (IV) Mad Scientist with Finglongers

From: Germany
Insane since: Sep 2001

posted posted 10-14-2003 09:31

there is... it started doing it by default from a certain version on... annoyed the heck out of me - look into your php.ini.

(sorry, in a hurry...)

Emperor
Maniac (V) Mad Scientist with Finglongers

From: Cell 53, East Wing
Insane since: Jul 2001

posted posted 10-14-2003 14:57

quisja: I'm not sure what the problem is - you aren't going to try and validate a broken page and you shouldn't have PHP errors lying around in a working script for very long if it can be helped.

___________________
Emps

The Emperor dot org

« BackwardsOnwards »

Show Forum Drop Down Menu