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" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
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 ([EMAIL PROTECTED]):
> > 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
>
>

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to