Forum Moderators: coopster

Message Too Old, No Replies

Customer Error Pages.

         

ucs308

12:27 am on Nov 21, 2003 (gmt 0)

10+ Year Member



I have a web site hosted by a provider that uses Windows Boxes. I am on a shared server using PHP. 4.3.2.

I am looking for pointers to how I can redirect any and all errors to a single page, that can then be emailed to our support people, and redirect the user to the correct page, or provided a link so the users can click and go to the home page.

Can anybody point in the direction of articles or keywords I could use for searching.

ergophobe

3:33 am on Nov 21, 2003 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member Top Contributors Of The Month



Search on "Custom Error Pages 404" in Google and you'll get lots of quick tutorials for creating custom error pages.

When you create your custom error page, have it so that when the custom error page comes up, you use PHP to send an email to support with the URL originally requested. Look under mail functions [us2.php.net] in the PHP manual.

Of course, if you want support to then contact the customer, that person would need to be logged in and you would need the e-mail to include the customer ID.

Does that help at all or is it too vague?