PHP MySQL Database


  1. DocBlocks are indicated by opening a comment using _________.











  1. View Hint View Answer Discuss in Forum

    NA

    Correct Option: B

    This is a special comment that provides information about a class, property, or method.


  1. To make the ImageHandler class portable you should create a separate file for it called __________.











  1. View Hint View Answer Discuss in Forum

    NA

    Correct Option: C

    You save this file in the inc folder (full path: /xampp/htdocs/simple_blog/inc/images.inc.php).



  1. To check whether a file was uploaded, you look in the _______ superglobal array.











  1. View Hint View Answer Discuss in Forum

    NA

    Correct Option: D

    Whenever a file is uploaded via an HTML form, that file is stored in temporary memory and information about the file is passed in the $_FILES superglobal.


  1. When you’re uploading files you need to set the enctype of the form to __________.











  1. View Hint View Answer Discuss in Forum

    NA

    Correct Option: A

    Set the enctype of the form to multipart/form-data, which can accept files and standard form values.



  1. Before you can start processing images with PHP, you must first add the ability to upload images to your administrative form on ________.











  1. View Hint View Answer Discuss in Forum

    NA

    Correct Option: B

    To do this, you’ need to add a file upload input to your administrative form.