From 318c4adbdb08a83d2ccb14c6a590f83b95e28f38 Mon Sep 17 00:00:00 2001 From: Derick Rethans Date: Wed, 11 Jun 2003 21:13:57 +0000 Subject: [PATCH] - Layout fixes (the lines were waaay too long) git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@131089 c90b9560-bf6c-de11-be94-00142212c4b1 --- features/file-upload.xml | 13 ++++++++----- 1 file changed, 8 insertions(+), 5 deletions(-) diff --git a/features/file-upload.xml b/features/file-upload.xml index 4b9b8cd7f0..2b07e1fbd3 100644 --- a/features/file-upload.xml +++ b/features/file-upload.xml @@ -1,5 +1,5 @@ - + Handling file uploads @@ -176,14 +176,17 @@ Send this file: "; -if (move_uploaded_file($_FILES['userfile']['tmp_name'], $uploaddir . $_FILES['userfile']['name'])) { - print "File is valid, and was successfully uploaded. Here's some more debugging info:\n"; +if (move_uploaded_file($_FILES['userfile']['tmp_name'], $uploadfile)) { + print "File is valid, and was successfully uploaded. "; + print "Here's some more debugging info:\n"; print_r($_FILES); } else { print "Possible file upload attack! Here's some debugging info:\n";