ExamVeda
Login
Home
1
Which one of the following statements should be used to disable just the fopen(), and file() functions?
Discuss
Answer & Solution
Answer: Option B
Solution:
You can set disable_functions equal to a comma-delimited list of function names that you want to disable.
2
Which one of the following statements should be used to disable the use of two classes administrator and janitor?
Discuss
Answer & Solution
Answer: Option A
Solution:
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.
3
What is the default value of max_execution_time directive? This directive specifies how many seconds a script can execute before being terminated.
Discuss
Answer & Solution
Answer: Option C
Solution:
This 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.
4
The memory_limit is only applicable if _______ is enabled when you configure PHP. Fill in the blank.
Discuss
Answer & Solution
Answer: Option C
Solution:
This directive specifies, in megabytes, how much memory a script can use. Default value: 128M.
5
Suppose all web material is located within the directory /home/www. To prevent users from viewing and manipulating files such as /etc/password, which one of the following statements should you use?
Discuss
Answer & Solution
Answer: Option D
No explanation is given for this question. Let's Discuss on Board
6
Which Apache directive outputs Apache’s server version, server name, port and compile-in modules?
Discuss
Answer & Solution
Answer: Option A
Solution:
It is capable of displaying output like: Apache/2.2.11 (Ubuntu) Server at localhost Port 80.
7
Which directive determines which degree of server details is provided if the ServerSignature directive is enabled?
Discuss
Answer & Solution
Answer: Option C
Solution:
Six 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.
8
Which directive should we disable to obscure the fact that PHP is being used on our server?
Discuss
Answer & Solution
Answer: Option B
Solution:
Using 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.
9
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?
Discuss
Answer & Solution
Answer: Option A
Solution:
Just change the .php to .html and your extension will change. This is used for security purpose.
10
The developers of PHP deprecated the safe mode feature as of which PHP version.
Discuss
Answer & Solution
Answer: Option C
Solution:
This 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.