PHP

PHP

Image Uploading Ability has 10 Questions

It will be useful for anyone learning PHP Basics and Fundamentals. 1. Before you can start processing images with PHP, you must first add the ability to upload images to your administrative form on ___.

.htaccess
function.inc.php
index.php
admin.php
When you're uploading files you need to set the enctype of the form to ___.

text
text/file
multipart/form-data
multimedia/form-data
To check whether a file was uploaded, you look in the ___ superglobal array.

$_FILES
$_DOCS
$_DOCUMENTS
$_FOLDERS
To make the ImageHandler class portable you should create a separate file for it called ___.

imagehandler.inc.php
images.inc.php
handler.inc.php
imghandler.inc.php
DocBlocks are indicated by opening a comment using ___.

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

divide()
list()
break()
indi()
Before you try to process the file, you need to make sure that your $err value is equivalent to ___.

UPLOAD_ERR_OK
UPLOAD_NO_ERR
UPLOAD_ERR_NO_OK
UPLOAD_ERR
You use the $_SERVER superglobal and your ___ property to create your path to check.

$load_dir
$load
$save
$save_dir
Which function do you have to use to check whether the $path you've stored exists?

path_dir()
path()
is_dir()
path_dir()
Which one of the following is true about the following line ? $obj = new ImageHandler('/images/', array(400, 300));

This snippet sets the maximum dimensions allowed to 400 pixels wide by 300 pixels high.
This snippet sets the minimum dimensions allowed to 300 pixels wide by 400 pixels high.
This snippet sets the minimum dimensions allowed to 400 pixels wide by 300 pixels high.
This snippet sets the maximum dimensions allowed to 300 pixels wide by 400 pixels high.