WannaCry is just the start. Read how Liquid Web is protecting itself and its customers against new threats.
Form field: <input type="file" name="photo" size="30" /> $tmpname = $_FILES['photo']['name']; //I added this for testing echo ($tmpname); //this returns empty $photoname = $_FILES['photo']['name']; $photoextension = $_FILES['photo']['type']; echo ($photoname.$photoextension); //added for testing, this works fine $photourl = "venueuploads/".$photoname.$photoextension; echo ($photourl); //this works and returns the full file name $photo = copy ($_FILES['photo']['tmp_name']['type'], $photourl); //this does not work
Add your voice to the tech community where 5M+ people just like you are talking about what matters.
Join the community of 500,000 technology professionals and ask your questions.