Re: WG: [PHP] Interesting Question (honest :O)

From: Date: Thu, 04 Jan 2001 18:44:38 +0000
Subject: Re: WG: [PHP] Interesting Question (honest :O)
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-32683@lists.php.net to get a copy of this message
I know I've seen this discussed somewhere recently, and IIRC it's in one of the EGPCS arrays. try print_r( $GLOBALS ) ; in the 404 script, it should pop up somewhere. At 19:22 4.1. 2001, Moritz Petersen wrote the following: -------------------------------------------------------------- >I've had the same problem some time ago. > >Jon's solution is the one, I found first, too. But I did not manage to get >the URL of the missing document. (Maybe I've overseen a simple feature). Any >suggestions about that would be nice. > >Another approach for this problem is to use mod_rewrite >(http://httpd.apache.org/docs/mod/mod_rewrite.html). > > >CU >Mo. > >> -----Ursprüngliche Nachricht----- >> Von: Jon Haworth [mailto:JHaworth@witanjardine.co.uk] >> Gesendet: Donnerstag, 4. Januar 2001 15:17 >> An: 'Gareth Davies' >> Cc: 'php-general@lists.php.net' >> Betreff: RE: [PHP] Interesting Question (honest :O) >> >> >> If it's Apache you're running, you just need to edit the >> httpd.conf file to >> read: >> >> ErrorDocument 404 /path/to/my/404-file.php >> >> >> HTH >> Jon >> >> >> >> -----Original Message----- >> From: Gareth Davies [mailto:garethdavies@frogtrade.com] >> Sent: 04 January 2001 14:14 >> To: php-general@lists.php.net >> Subject: [PHP] Interesting Question (honest :O) >> >> >> Hi and a happy new year to you all. >> >> How do I trap a request for a none existant page on my server with a php >> page? My reason for wanting to do this is so that people can access my >> domain with an extension of their own company name, e.g. >> www.mydomain.com/company - Rather than creating loads of little >> html pages, >> one for each "company" name, I want to automatically redirect any failed >> page requests to a generic php file that can then check a database and >> present whatever page is relevant to the "company" name given. >> >> Hope that makes sense. Not sure if it's PHP, probably Apache, but figured >> you guys were more likely to know the answer than the Apache forums. >> >> Thank you in anticipation. >> >> Kind regards, >> Gareth Davies >> Progressive Business Services Ltd >> >> +44 (0) 1274 889592 Office >> +44 (0) 1274 889656 Fax >> +44 (0) 7970 733851 Mobile (24 Hour) >> >> >> -- >> PHP General Mailing List (http://www.php.net/) >> To unsubscribe, e-mail: php-general-unsubscribe@lists.php.net >> For additional commands, e-mail: php-general-help@lists.php.net >> To contact the list administrators, e-mail: php-list-admin@lists.php.net >> > > >-- >PHP General Mailing List (http://www.php.net/) >To unsubscribe, e-mail: php-general-unsubscribe@lists.php.net >For additional commands, e-mail: php-general-help@lists.php.net >To contact the list administrators, e-mail: php-list-admin@lists.php.net ------end of quote------ ____________________________________________________________ Cynic: A member of a group of ancient Greek philosophers who taught that virtue constitutes happiness and that self control is the essential part of virtue. cynic@mail.cz

« previous php.general (#32683) next »