Page 1 of 1

.asp file as .php

Posted: Tue Feb 04, 2003 2:04 pm
by nmotion
How do I setup so the server reads .asp files as .php files. I know there is way to do this.

Please help.

Posted: Tue Feb 04, 2003 2:06 pm
by volka
which webserver-software and which kind of installation (cgi/module)?

Posted: Tue Feb 04, 2003 2:42 pm
by superwormy
For apache, put this in your .htaccess file ( assumes your host allows you to use this in htaccess files )


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

Posted: Tue Feb 04, 2003 2:59 pm
by bionicdonkey
for apache add this to your httpd.conf:

AddType application/x-httpd-php .asp

Posted: Tue Feb 04, 2003 4:56 pm
by fractalvibes
why would you want to? An ASP script will fail if the php parser tries
to parse it...and vice-versa...??????

Posted: Tue Feb 04, 2003 4:58 pm
by volka
maybe he/she changed to php but wants to keep the link-structure