Let me accept different kind of files that consists of PHP code. For instance, it might be nice to see an .aspx file by PHP as though it were .php. Can it be possible?

Thanks greatly ahead of time

Add this for your .htaccess file in Apache to create html parse as PHP:

AddType application/x-httpd-php .html

You are able to extrapolate what you ought to do after that. :-)

Make use of this htaccess rule:

AddType application/x-httpd-php .php .aspx

Yes, this really is completed in your Apache configuration. You know apache what type of files you would like it to send towards the PHP engine. This can be done configuration exactly the same way you need to do other apache configuration - within the primary config file, per site, or perhaps in .htaccess files.