PDA

View Full Version : Would it be wrong if...


Morgoth
12-06-2002, 07:19 PM
I was thinking as I was installing PHP on my server.

I have many arguments over what's better, ASP and PHP, and IIS and Apache, and I don't have an opinion, nor do the people I usually talk to (most of them are newbies), because we have not ever used the other type of server.
It usually starts if i set up a file to show someone over some IRC chat or something and it ends with .ASP

Now I wonder, would it be wrong to configure your IIS to not execute .ASP files in the ASP way, but execute .PHP files in the ASP way.

Meaning:
Php2.php:
<%
If 0 = 0 Then
Response.Write "Hello World"
End If
%>

And it will take that file, and not read it as a php file with php code, but with ASP code, also hiding the fact it is ASP you are using.

Would it be wrong to configure your IIS server to do that?
I would like to see someone acually do that. Lol...

Roy Sinclair
12-06-2002, 09:23 PM
It would be simplicity itself to do that. Using MMC with the IIS plugin bring up the Properties of your web site and switch to the "Home Directory" tab. Click on the "Configuration" button and you'll see a listing of application mappings (ie the mappings used to control which process handles each type of file extension) and you can add PHP as another extension which is handled the exact same way that ASP is handled. You could also change ASP so it's handled by the PERL subsystem, it's completely under your control.

Morgoth
12-06-2002, 11:55 PM
But the question is... Would it be wrong to do it??

Hehe.
Maybe I should add an extention of .PizzaTastesGood and change all my .asp files to that, see what happends. ;)
See what people say too!

oracleguy
12-07-2002, 12:46 AM
I've seen that done before, where a website changes the file extention so you don't know what server language they are using. I don't know why you'd really want to do it except for fun.

You could make .PHPBlows process ASP. :D Just kidding! I'll prolly end up learning PHP someday so I shouldn't dis it.

whammy
12-07-2002, 11:25 PM
I might use some custom extension for fun. It would be cool...

Morgoth
12-08-2002, 04:06 AM
.exe
.virus
.YourNext
.Error
.Dot
.com
.404
.HeyWaitAMinuteYoureNotMyRealSon
.123
.pi
.htmlmlmlmlmlmlmlmlmlmlmlmlmlmlmlml
.:thumbsup:
.eml
.txt


You can keep going.