Which directive determines whether PHP scripts on the server can accept file uploads?
A. file_uploads
B. file_upload
C. file_input
D. file_intake
Select an option to see the answer and solution.
Which of the following directive determines the maximum amount of time that a PHP script will spend attempting to parse input before registering a fatal error?
A. max_take_time
B. max_intake_time
C. max_input_time
D. max_parse_time
Select an option to see the answer and solution.
What is the default value of max_input_time directive?
A. 30 seconds
B. 60 seconds
C. 120 seconds
D. 1 second
Select an option to see the answer and solution.
Since which version of PHP was the directive max_file_limit available.
A. PHP 5.2.1
B. PHP 5.2.2
C. PHP 5.2.12
D. PHP 5.2.21
Select an option to see the answer and solution.
What is the default value of the directive max_file_limit?
A. 10 files
B. 15 files
C. 20 files
D. 25 files
Select an option to see the answer and solution.
Which directive sets a maximum allowable amount of memory in megabytes that a script can allow?
A. max_size
B. post_max_size
C. max_memory_limit
D. memory_limit
Select an option to see the answer and solution.
If you want to temporarily store uploaded files in the /tmp/phpuploads/ directory, which one of the following statement will you use?
A. upload_tmp_dir “/tmp/phpuploads/ directory”
B. upload_dir “/tmp/phpuploads/ directory”
C. upload_temp_dir “/tmp/phpuploads/ directory”
D. upload_temp_director “/tmp/phpuploads/ directory”
Select an option to see the answer and solution.
Which superglobal stores a variety of information pertinent to a file uploaded to the server via a PHP script?
A. $_FILE Array
B. $_FILEs Array
C. $_FILES_UPLOADED Array
D. $_FILE_UPLOADED Array
Select an option to see the answer and solution.
How many items are available in the $_FILES array?
Select an option to see the answer and solution.
Which function is used to determine whether a file was uploaded?
A. is_file_uploaded()
B. is_uploaded_file()
C. file_uploaded(“filename”)
D. uploaded_file(“filename”)
Select an option to see the answer and solution.
Which one of the following is the very first task executed by a session enabled page?
A. Delete the previous session
B. Start a new session
C. Check whether a valid session exists
D. Handle the session
Select an option to see the answer and solution.
How many ways can a session data be stored?
Select an option to see the answer and solution.
Which directive determines how the session information will be stored?
A. save_data
B. session.save
C. session.save_data
D. session.save_handler
Select an option to see the answer and solution.
Which one of the following is the default PHP session name?
A. PHPSESSID
B. PHPSESID
C. PHPSESSIONID
D. PHPIDSESS
Select an option to see the answer and solution.
If session.use_cookie is set to 0, this results in use of.
A. Session
B. Cookie
C. URL rewriting
D. Nothing happens
Select an option to see the answer and solution.
If the directive session.cookie_lifetime is set to 3600, the cookie will live until.
A. 3600 sec
B. 3600 min
C. 3600 hrs
D. the browser is restarted
Select an option to see the answer and solution.
Neglecting to set which of the following cookie will result in the cookie’s domain being set to the host name of the server which generated it.
A. session.domain
B. session.path
C. session.cookie_path
D. session.cookie_domain
Select an option to see the answer and solution.
What is the default number of seconds that cached session pages are made available before the new pages are created?
Select an option to see the answer and solution.
What is the default time(in seconds) for which session data is considered valid?
Select an option to see the answer and solution.
Which one of the following function is used to start a session?
A. start_session()
B. session_start()
C. session_begin()
D. begin_session()
Select an option to see the answer and solution.