[solved] Default eeror files on IIS server
Posted: Wed Mar 23, 2005 8:29 am
Hi All,
I know it is possible to modify the default error pages on IIS but I wsh to use php code within the pages to:
a) send me an email of the URL they were wanting
b) Read the requested URL string and suggest pages they may be looking for
Now I did a very simple error page with an echo on it to see if PHP code would work. It didn't. Obviously the page extension was .php and it just returned a blank page with no source in the "view source".
If I change the extension to htm, html etc (No php code) it displayed my custom error page.
I was wondering if there was some IIS option I needed to configure to allow for the execution of PHP in the custome error files?
Cheers
Jim
I know it is possible to modify the default error pages on IIS but I wsh to use php code within the pages to:
a) send me an email of the URL they were wanting
b) Read the requested URL string and suggest pages they may be looking for
Now I did a very simple error page with an echo on it to see if PHP code would work. It didn't. Obviously the page extension was .php and it just returned a blank page with no source in the "view source".
If I change the extension to htm, html etc (No php code) it displayed my custom error page.
I was wondering if there was some IIS option I needed to configure to allow for the execution of PHP in the custome error files?
Cheers
Jim