|
|
|||||||||
|
|||||||||
| |||||||||
|
|
|
| ||||||||||||||||||||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
#1
|
|||
|
|||
|
Error documents from different directories
Hi, I'm using PHP5 with Apache. Does anyone have a good method for displaying error documents (like 404) with CSS and images when the error occurs at different directory levels?
For example, my error file, error.php, is in my root directory (like http://site.com/) and displays just fine when an error occurs in that same directory (say, a call for http://site.com/missing.php that doesn't exist). But if I produce an error from another directory level (http://site.com/level2/missing.php), I only get the plain HTML of error.php because all of the URIs to styles or images are relative to the location of error.php. Thanks for your help! Ryan |
|
#2
|
|||
|
|||
|
RE: Error documents from different directories
I have come-up with a solution to this, the details of which can be found on the thread, "Absolute paths in include()" in the PHP Coding forum:
http://codewalkers.com/forum/index.php?action=displaythread&forum=phpcoding&id=18616&realm=default |
![]() |
| Viewing: Codewalkers Forums > Other Technologies > Server Administration > Error documents from different directories |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|
|