Website Security(Php ) Questions and Answers
Explanation:-
Answer: Option C. -> 30This can be useful to prevent users’ scripts from consuming too much CPU time. If max_execution_time is set to 0, no time limit will be set.
Explanation:-
Answer: Option A. -> disable_classes = “administrator, janitor”There may be classes inside the libraries that you’d rather not make available. You can prevent the use of these classes with the disable_classes directive.
Explanation:-
Answer: Option B. -> expose_phpUsing the expose_php directive we can prevent PHP version details from being appended on our web server signature. When expose_php is disabled, the server signature will look like: Apache/2.2.11 (Ubuntu) Server.
Explanation:-
Answer: Option C. -> ServerTokensSix options are available: Full, Major, Minimal, Minior, OS, and Prod. If it is set to Full ‘Apache/2.2.11 (Ubuntu) PHP/5.3.2 Server’ will be displayed.
Explanation:-
Answer: Option C. -> PHP 5.3.0This happened because safe mode often creates many problems as it resolves, largely due to the need for enterprise applications to use many of the features safe mode disables.
Explanation:-
Answer: Option A. -> AddType application/x-httpd-php .phpJust change the .php to .html and your extension will change. This is used for security purpose.