Re: running php even without .php extenstion, how can i do this?

From: Date: Thu, 27 May 2004 05:48:10 +0000
Subject: Re: running php even without .php extenstion, how can i do this?
References: 1 2  Groups: php.general 
Request: Send a blank email to php-general+get-187038@lists.php.net to get a copy of this message
I got what you mean, but can we do this on the whole directory instead by files? Like for example the whole / directory and /subdirectory/ so i wont be doing that editing every files? The example you gave is working, btw. -- - Louie Miranda http://www.axishift.com ----- Original Message ----- From: "Curt Zirzow" <php-general@zirzow.dyndns.org> To: <php-general@lists.php.net> Sent: Thursday, May 27, 2004 1:27 PM Subject: Re: [PHP] running php even without .php extenstion, how can i do this? > * Thus wrote Louie Miranda (louie@axishift.ath.cx): > > I have seen similar sites that runs php. but without the extension. > > > > like: example.com/hello/great?ID=19 > > > > How can i do this? Run the php even without the .php extension > > if you add a .htaccess file in the /hello/ directory with something > like (assuming apache as webserver): > > <Files great> > SetHandler application/x-httpd-php > </Files> > > A file called great will be parsed as php. > > Or in / > > <Files hello> > SetHandler application/x-httpd-php > </Files> > > then the file hello will be ran as php and $_SERVER['PATH_INFO'] > will contain '/great' > > > Have fun :) > > Curt > -- > "I used to think I was indecisive, but now I'm not so sure." > > -- > PHP General Mailing List (http://www.php.net/) > To unsubscribe, visit: http://www.php.net/unsub.php > >

« previous php.general (#187038) next »