Welcome to WebmasterWorld Guest from 23.23.46.20

Forum Moderators: coopster & jatar k

PHP, asp and file extensions

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

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



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 Jun 10, 2002 (gmt 0)

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



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 Jun 15, 2002 (gmt 0)

10+ Year Member



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.
 

Featured Threads

My Threads

Hot Threads This Week

Hot Threads This Month