Re: HTML if no PHP
| From: | Goetz Lohmann | Date: | Tue, 04 Feb 2003 17:26:23 +0000 |
| Subject: | Re: HTML if no PHP | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-134296@lists.php.net to get a copy of this message | ||
Bob Lockie schrieb:
>
> I want to display an HTML page if PHP can't load an include file or
> otherwise has an error or just doesn't work.
> How do I do this?
if you using apache you could do this with an ErrorDocument line
which also is usefull to prevent the 404 error page.
take a look at:
http://httpd.apache.org/docs/mod/core.html#errordocument
--
@ Goetz Lohmann, Germany | Web-Developer & Sys-Admin
\/ ------------------------------------------------------
() He's the fellow that people wonder what he does and
|| why the company needs him, until he goes on vacation.