Welcome to WebmasterWorld Guest from 54.197.150.143

Forum Moderators: coopster & jatar k

Message Too Old, No Replies

PHP, asp and file extensions

     
1:22 am on Jun 10, 2002 (gmt 0)

Senior Member

WebmasterWorld Senior Member marcia is a WebmasterWorld Top Contributor of All Time 10+ Year Member

joined:Sept 29, 2000
posts:12095
votes: 0


Is there a way to use either and have the pages appear as .html instead of .asp or .php?

asp would be with Windows2000 hosting (maybe with .NET) and php would be with either Win2000 or Linux/Apache hosting.

1:48 am on June 10, 2002 (gmt 0)

Senior Member

WebmasterWorld Senior Member jeremy_goodrich is a WebmasterWorld Top Contributor of All Time 10+ Year Member

joined:Aug 4, 2000
posts:3468
votes: 0


Addhandler for linux/apache.

For iis, you 'remap the executable for html to the executable for asp'

What that means in IIS, go to the part where it has the different paths for different file extensions. Select the one for asp, copy that, and then go to the one for html. Past the one for asp there, save the configuration, and you're done.

Though, I might be missing the question...I don't think you can parse both asp and php the same way on any platform, eg, have the server check if an html page is asp or php before serving.

What you could do if that's what you really need is process all .htm's for asp, and then process all .html's for php. :)

2:35 am on June 15, 2002 (gmt 0)

New User

10+ Year Member

joined:June 14, 2002
posts:18
votes: 0


Marcia - It's very important to note here though if you start using the php parser on every html file you open you're going to be adding a lot of unnecessary overhead for pages that have no php code whatsoever. It is best to not do this if you can help it.