<?php //Writes the photo to the server if (move_uploaded_file($_FILES['photo']['tmp_name'], $target) or die (mysql_error())) {