Jessica Posted February 20, 2007 Share Posted February 20, 2007 How would I go about changing the default error message for this type of error: Warning: Missing argument 2 for explode(), called in... All I want to do is make it print the url to the php.net documentation, so it will link to the function for me. Warning: Missing argument 2 for <a href="http://php.net/explode">explode()</a>, called in... I don't think this can be done with just regular error handling, so I figured I'd pop in here...Thanks Quote Link to comment https://forums.phpfreaks.com/topic/39356-editing-default-error-messages/ Share on other sites More sharing options...
trq Posted February 20, 2007 Share Posted February 20, 2007 Take a look at the html_errors and docref_root attributes of your php.ini file, of course this can be done with regular php error handling. Quote Link to comment https://forums.phpfreaks.com/topic/39356-editing-default-error-messages/#findComment-189834 Share on other sites More sharing options...
Jessica Posted February 20, 2007 Author Share Posted February 20, 2007 Ah, thanks Thorpe I guess I was wrong However, I don't want to download the manual, I want it to go directly to php.net. http://us3.php.net/manual/en/ref.errorfunc.php So I went ahead and did this: html_errors=1 docref_root=http://php.net/ But the errors look exactly the same. I also tried html_errors=1 docref_root="http://php.net/" Quote Link to comment https://forums.phpfreaks.com/topic/39356-editing-default-error-messages/#findComment-189855 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.