
March 20th, 2000, 06:28 AM
|
|
Contributing User
|
|
Join Date: Feb 2000
Location: Aalborg, Denmark
Posts: 36
Time spent in forums: < 1 sec
Reputation Power: 14
|
|
|
If you use Apache as your webserver it's pretty straight forward.
1) Make sure your 404 page is allowed to execute php-scripts (check your srm.conf file (eg. /etc/httpd/conf/srm.conf) set it to eg. /missing.php3 . Then you make DOCUMENT_ROOT/missing.php3 your 404 page)
2) The requested url can then be found with the command:
getenv("REQUEST_URI");
Hope this helps you a bit
// Martin
|