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

Link to comment
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • 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.