Jump to content

Editing default error messages


Jessica

Recommended Posts

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 :)

Link to comment
https://forums.phpfreaks.com/topic/39356-editing-default-error-messages/
Share on other sites

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/"

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.