views:

31

answers:

3

I'm running XAMPP.

Is there a line I can add to .htaccess or http.conf to make ASP be parsed and handled as PHP pages?

I had it setup before but can't remember how to do it. What I've tried so far hasn't worked.

Edit: None of these solutions are working, I've tried everything.

A: 

Apache does not have a module for ASP processing. You have to use IIS for that. Modern IIS can run PHP so you may do it the other way around, use IIS and plug PHP into it.

Palantir
I'm just wanting to have Apache run a .asp file as if it were a PHP file, there is no actual ASP code.
guitar-
aah, ok, then you just need to add the handler for the file extension. Go to your apache config file and look for where it associates .php to the php module. It's like this, just add asp extension instead of html: http://www.besthostratings.com/articles/php-in-html-files.html
Palantir
"Apache does not have a module for ASP processing." mod_mono disagrees with you, at least for ASPX.
R. Bemrose
+1  A: 

Add this to your httpd.conf

AddType application/x-httpd-php .asp .aspx .ascx .ashx
infamouse
this is what he asks but is it kinda ackward ....
pastjean
Doesn't work. PHP code shows in the page's source.
guitar-
See alternative solution I added.
infamouse
A: 

Maybe try this:

AddHandler php5-script  .php .asp .aspx .ascx .ashx .asmx
AddType text/html .php .asp .aspx .ascx .ashx .asmx
infamouse