1.

Say I want to change the extension of a PHP file, which of the following statements should I edit to change from .php to .html in the httpd.conf file?(a) AddType application/x-httpd-php .php(b) AddType application/x-httpd-php .asp(c) AddType application/x-httpd-asp .php(d) AddType application/x-httpd-asp .aspI got this question in an interview for job.This interesting question is from Website Security using PHP topic in section File and Session Handling in PHP of PHP

Answer»

The correct ANSWER is (a) AddType application/x-httpd-PHP .php

Easiest explanation: Just CHANGE the .php to .HTML and your extension will change. This is used for security purpose.



Discussion

No Comment Found

Related InterviewSolutions