Re: [PHP] XHTML compatible error messages
On Fri, Aug 17, 2001 at 05:40:07PM +0200, Jan wrote: Hi out there! I have got a problem with PHP's standard way of reporting errors. The br in the error messages are making the XML invalid (should be br/). Is there an easy way to do this? This was done in CVS a few months ago. It should be in PHP 4.1.0 when it comes out shortly. Matt -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
RE: [PHP] XHTML compatible error messages
There is a way to turn off HTML in Errors in PHP. This is done in php.ini or you can use the ini_set() function to change the value. html_errors boolean Turn off HTML tags in error messages http://download.php.net/manual/en/configuration.php Jason Lotito [EMAIL PROTECTED] www.NewbieNetwork.net -Original Message- From: Matt McClanahan [mailto:[EMAIL PROTECTED]] Sent: Thursday, December 06, 2001 2:05 AM To: Jan Cc: [EMAIL PROTECTED] Subject: Re: [PHP] XHTML compatible error messages On Fri, Aug 17, 2001 at 05:40:07PM +0200, Jan wrote: Hi out there! I have got a problem with PHP's standard way of reporting errors. The br in the error messages are making the XML invalid (should be br/). Is there an easy way to do this? This was done in CVS a few months ago. It should be in PHP 4.1.0 when it comes out shortly. Matt -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED] -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
Re: [PHP] XHTML compatible error messages
$string = Hello everyone!brHow are you today?; $result = str_replace(br, br/, $string); -- Tyler Longren Captain Jack Communications [EMAIL PROTECTED] www.captainjack.com On Fri, 17 Aug 2001 17:40:07 +0200 Jan [EMAIL PROTECTED] wrote: Hi out there! I have got a problem with PHP's standard way of reporting errors. The br in the error messages are making the XML invalid (should be br/). Is there an easy way to do this? Jan. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
RE: [PHP] XHTML compatible error messages
I think Jan meant that when PHP spits out Error in line x, it has a br in there which causes the page to be invalid. My question would be why are you trying to validate pages with errors in anyway? Cheers Jon -Original Message- From: Tyler Longren [mailto:[EMAIL PROTECTED]] Sent: 17 August 2001 16:44 To: Jan Cc: [EMAIL PROTECTED] Subject: Re: [PHP] XHTML compatible error messages $string = Hello everyone!brHow are you today?; $result = str_replace(br, br/, $string); -- Tyler Longren Captain Jack Communications [EMAIL PROTECTED] www.captainjack.com On Fri, 17 Aug 2001 17:40:07 +0200 Jan [EMAIL PROTECTED] wrote: Hi out there! I have got a problem with PHP's standard way of reporting errors. The br in the error messages are making the XML invalid (should be br/). Is there an easy way to do this? Jan. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
Re: [PHP] XHTML compatible error messages
Hi Jon, If the execution of a script is not stopped (when a parse error occures e.g.) then I could formate the error message within my generated XML with XSLT. My browser does not show the page if it is not valid XML so I have to use lynx in a putty telnet to look up my error messages which I would prefere to do not. So my question is: How can I alter the PHP built in error messaging format? Thanks in advance, Jan I think Jan meant that when PHP spits out Error in line x, it has a br in there which causes the page to be invalid. My question would be why are you trying to validate pages with errors in anyway? Cheers Jon -Original Message- From: Tyler Longren [mailto:[EMAIL PROTECTED]] Sent: 17 August 2001 16:44 To: Jan Cc: [EMAIL PROTECTED] Subject: Re: [PHP] XHTML compatible error messages $string = Hello everyone!brHow are you today?; $result = str_replace(br, br/, $string); -- Tyler Longren Captain Jack Communications [EMAIL PROTECTED] www.captainjack.com On Fri, 17 Aug 2001 17:40:07 +0200 Jan [EMAIL PROTECTED] wrote: Hi out there! I have got a problem with PHP's standard way of reporting errors. The br in the error messages are making the XML invalid (should be br/). Is there an easy way to do this? Jan. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED] -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]