Re: [PHP-WIN] 404 documents

2002-11-03 Thread Steve Yates
>I there a way to have the .php page pickup the url that was typed in e.g. >usertype= www.mydomain.com/wRongurl $usertype = getenv('REQUEST_URI'); I believe this is one of those server-dependent environment variables, but it works with Apache. - Steve Yates - Who is General Failure and why is

Re: [PHP-WIN] 404 documents

2002-10-30 Thread DaMouse
thankyou for your help is there variables for 403 and 500 also? - Original Message - From: Dash McElroy <[EMAIL PROTECTED]> To: DaMouse <[EMAIL PROTECTED]> Cc: <[EMAIL PROTECTED]> Sent: Wednesday, October 30, 2002 12:43 AM Subject: Re: [PHP-WIN] 404 documents >

Re: [PHP-WIN] 404 documents

2002-10-29 Thread Dash McElroy
>From Rasmus' tips and tricks presentation at PHPcon: (www.lerdorf.com/tips.pdf) Apache's ErrorDocument directive can come in handy. For example, this line in your Apache configuration file: ErrorDocument 404 /error.php Can be used to redirect all 404 errors to a PHP script. The following serv

Re: [PHP-WIN] 404 documents

2002-10-29 Thread Jim Hunter
Use: $HTTP_HOST it will give you the typed in URL. Jim Hunter ---Original Message--- From: DaMouse Date: Tuesday, October 29, 2002 02:16:53 PM To: [EMAIL PROTECTED] Subject: [PHP-WIN] 404 documents I there a way to have the .php page pickup the url that was

[PHP-WIN] 404 documents

2002-10-29 Thread DaMouse
I there a way to have the .php page pickup the url that was typed in e.g. usertype= www.mydomain.com/wRongurl $_SERVER[FILE_NOT_FOUND] = www.domain.com/wRongurl echo "The lost page was: $_SERVER[FILE_NOT_FOUND]";