PHP MySQL Database


  1. When a user confirms that he wishes to delete an entry, that entry’s URL is passed to a function which removes the entry from the __________.











  1. View Hint View Answer Discuss in Forum

    NA

    Correct Option: A

    If the function is successful, you send the user to the main page. If it fails, you stop execution of the script and display an error, letting the user know that something went wrong.


  1. Which function do you have to use to check whether the $path you’ve stored exists?











  1. View Hint View Answer Discuss in Forum

    NA

    Correct Option: A

    If the path exists, is_dir() returns TRUE; otherwise, it returns FALSE.



  1. You use the $_SERVER superglobal and your _______ property to create your path to check.











  1. View Hint View Answer Discuss in Forum

    NA

    Correct Option: C

    // Determines the path to check $path = $_SERVER[‘DOCUMENT_ROOT’] . $this->save_dir;


  1. Before you try to process the file, you need to make sure that your $err value is equivalent to _________.











  1. View Hint View Answer Discuss in Forum

    NA

    Correct Option: D

    When you’re dealing with files uploaded through an HTML form, you have access to a special constant called UPLOAD_ERR_OK that tells you whether a file uploaded successfully.



  1. To process the file, you need to break the array from $_FILES into individual values. You can do this using the ________ function.











  1. View Hint View Answer Discuss in Forum

    NA

    Correct Option: C

    The list() function allows you to create named variables for each array index as a comma-separated list.