Which function do you apply to the text, when displaying it?
You want to allow your users to submit HTML code in a form, which will then be displayed
as real code and not affect your page layout. Which function do you apply to the text, when
displaying it? (Choose 2)
How many elements does the array $pieces contain after the following piece of code has been executed?
How many elements does the array $pieces contain after the following piece of code has
been executed? $pieces = explode(“/”, “///”);
Which string will be returned by the following function call?
Which string will be returned by the following function call? $test = ‘/etc/conf.d/wireless’;
substr($test, strrpos($test, ‘/’)); // note that strrpos() is being called, and not strpos()
Which of the following actions must be taken before this code may go into production?
An HTML form contains this form element: <input type=”file” name=”myFile” /> When this
form is submitted, the following PHP code gets executed: move_uploaded_file(
$_FILES[‘myFile’][‘tmp_name’], ‘uploads/’ . $_FILES[‘myFile’][‘name’] ); Which of the
following actions must be taken before this code may go into production? (Choose 2)
Which PHP function retrieves a list of HTTP headers that have been sent as part of the HTTP response or are re
Which PHP function retrieves a list of HTTP headers that have been sent as part of the
HTTP response or are ready to be sent?
Which options do you have in PHP to set the expiry date of a session?
Which options do you have in PHP to set the expiry date of a session?
what is the value of $_POST[‘accept’] ?
The following form is loaded in a browser and submitted, with the checkbox activated: <form
method=”post”> <input type=”checkbox” name=”accept” /> </form> In the server-side PHP
code to deal with the form data, what is the value of $_POST[‘accept’] ?
where would the file data be found?
When uploading a file to a PHP script using the HTTP PUT method, where would the file
data be found?
Please provide the name of the super-global variable where all the information about cookies is available.
Please provide the name of the super-global variable where all the information about
cookies is available.
what is the value of $_POST[‘list’] ?
The following form is loaded in a recent browser and submitted, with the second select
option selected: <form method=”post”> <select name=”list”> <option>one</option>
<option>two</option> <option>three</option> </select> </form> In the server-side PHP
code to deal with the form data, what is the value of $_POST[‘list’] ?