Page 1 of 1

how change php extensions file to another file

Posted: Wed Mar 14, 2007 1:47 am
by prakashadmane
i want change php extensions file index.php to another file like index.kk ..

how will know php parser that file is php .that file should be run ...

Posted: Wed Mar 14, 2007 3:40 am
by volka
You already told the webserver to let php handle requests for files having .php as filename extension.
Now tell it to let php handle files having the filename extension .kk, too.
How you did this depends on the webserver you're using. E.g. for apache
http://www.php.net/manual/en/install.unix.apache2.php wrote:Tell Apache to parse certain extensions as PHP. For example,
let's have Apache parse the .php extension as PHP. You could
have any extension(s) parse as PHP by simply adding more, with
each separated by a space. We'll add .phtml to demonstrate.

AddType application/x-httpd-php .php .phtml