homepage Welcome to WebmasterWorld Guest from 54.237.54.83
register, free tools, login, search, pro membership, help, library, announcements, recent posts, open posts,
Become a Pro Member

Visit PubCon.com
Home / Forums Index / Code, Content, and Presentation / PHP Server Side Scripting
Forum Library, Charter, Moderators: coopster & jatar k

PHP Server Side Scripting Forum

    
PHP, asp and file extensions
Marcia




msg:1282503
 1:22 am on Jun 10, 2002 (gmt 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.

 

jeremy goodrich




msg:1282504
 1:48 am on Jun 10, 2002 (gmt 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. :)

ndjp




msg:1282505
 2:35 am on Jun 15, 2002 (gmt 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.

Global Options:
 top home search open messages active posts  
 

Home / Forums Index / Code, Content, and Presentation / PHP Server Side Scripting
rss feed

All trademarks and copyrights held by respective owners. Member comments are owned by the poster.
Home ¦ Free Tools ¦ Terms of Service ¦ Privacy Policy ¦ Report Problem ¦ About ¦ Library ¦ Newsletter
WebmasterWorld is a Developer Shed Community owned by Jim Boykin.
© Webmaster World 1996-2014 all rights reserved