.asp file as .php

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
nmotion
Forum Commoner
Posts: 32
Joined: Wed Jan 22, 2003 6:53 am

.asp file as .php

Post 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.
User avatar
volka
DevNet Evangelist
Posts: 8391
Joined: Tue May 07, 2002 9:48 am
Location: Berlin, ger

Post by volka »

which webserver-software and which kind of installation (cgi/module)?
superwormy
Forum Commoner
Posts: 67
Joined: Fri Oct 04, 2002 9:25 am
Location: CT

Post 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
bionicdonkey
Forum Contributor
Posts: 132
Joined: Fri Jan 31, 2003 2:28 am
Location: Sydney, Australia
Contact:

Post by bionicdonkey »

for apache add this to your httpd.conf:

AddType application/x-httpd-php .asp
fractalvibes
Forum Contributor
Posts: 335
Joined: Thu Sep 26, 2002 6:14 pm
Location: Waco, Texas

Post by fractalvibes »

why would you want to? An ASP script will fail if the php parser tries
to parse it...and vice-versa...??????
User avatar
volka
DevNet Evangelist
Posts: 8391
Joined: Tue May 07, 2002 9:48 am
Location: Berlin, ger

Post by volka »

maybe he/she changed to php but wants to keep the link-structure
Post Reply