Jump to content

possible php errors remove line breaks


Greywacke
 Share

Recommended Posts

hi there,this is just a question regarding possible php errors being displayed, wether it would be possible at all to replace the line breaks with \n and remove the html tags - so they can be written to a javascript document to be alerted in the browser instead of viewing source every time?all opinions and beliefs regarding this are welcome... i have tried to :) on this, and came up with a bunch of useless results! (php error remove line break) :/unfortunately i can't see how changing this would return the results i seek :/

Edited by Pierre 'Greywacke' du Toit
Link to comment
Share on other sites

You can define how errors are displayed with this function: http://es.php.net/manual/en/function.set-error-handler.phpI'm not sure to what extent, though. It doesn't seem to work for all types of errors.

Edited by Ingolme
Link to comment
Share on other sites

nono, i do not want to turn them off though - i will look into Ingolme's suggestion further, thank you! :)

Link to comment
Share on other sites

Setting html_errors to 0 doesn't turn error reporting off (that's the error_reporting option), it just turns off the HTML formatting for reported errors.http://www.php.net/manual/en/errorfunc.con...ini.html-errors

Link to comment
Share on other sites

ahh awesome thanks! :)

Link to comment
Share on other sites

hi again - and thanks, though it just removes the html formatting and not the line breaks... :/ don't suppose there is a way to remove them? had a look around google but couldnt seem to find anything... :/

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

×
×
  • Create New...