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
nmotion
Forum Commoner
Posts: 32 Joined: Wed Jan 22, 2003 6:53 am
Post
by nmotion » Tue Feb 04, 2003 2:04 pm
How do I setup so the server reads .asp files as .php files. I know there is way to do this.
Please help.
volka
DevNet Evangelist
Posts: 8391 Joined: Tue May 07, 2002 9:48 am
Location: Berlin, ger
Post
by volka » Tue Feb 04, 2003 2:06 pm
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 » Tue Feb 04, 2003 2:42 pm
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 » Tue Feb 04, 2003 2:59 pm
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 » Tue Feb 04, 2003 4:56 pm
why would you want to? An ASP script will fail if the php parser tries
to parse it...and vice-versa...??????
volka
DevNet Evangelist
Posts: 8391 Joined: Tue May 07, 2002 9:48 am
Location: Berlin, ger
Post
by volka » Tue Feb 04, 2003 4:58 pm
maybe he/she changed to php but wants to keep the link-structure