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

From: Date: Thu, 27 May 2004 05:27:31 +0000
Subject: Re: running php even without .php extenstion, how can i do this?
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-187036@lists.php.net to get a copy of this message
* 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."

« previous php.general (#187036) next »