ÿþ-A#032#-1B+% 2H- A%I' A* 2--!2C+I@+G0H0 21II-2#!5C+I%#9 6H-%#9%2"@G'H2 %+!8D%L@%"-00 #4FA%I' -"2C+I%#9D+ G%#91IAH 2@5"' H'"9 Code 500 'H24#D+ 9+%2"#-A%I' G"1AID!HDI@%" upload.php <?php // JQuery File Upload Plugin v1.4.1 by RonnieSan - (C)2009 Ronnie Garcia if (!empty($_FILES)) { $tempFile = $_FILES['Filedata']['tmp_name']; $targetPath = $_SERVER['DOCUMENT_ROOT'] . $_GET['folder'] . '/'; $targetFile = str_replace('//','/',$targetPath) . $_FILES['Filedata']['name']; // Uncomment the following line if you want to make the directory if it doesn't exist // mkdir(str_replace('//','/',$targetPath), 0755, true); move_uploaded_file($tempFile,$targetFile); } echo '1'; ?> ------------------------------------------------------------------------------------------------------------------------------------ Deletefiles.php <?php $dir = "files"; if (is_dir($dir)) { if ($opendir = opendir($dir)) { while (($file = readdir($opendir)) !== false) { unlink($dir . "/" . $file); } closedir($opendir); } } ?> ------------------------------------------------------------------------------------------------------------------------------------ 6H-%#9A%I' 6I Error 'H2 Warning: unlink(files/.) [function.unlink]: Permission denied in C:\xampplite\htdocs\PhotoUpload\DeleteFiles.php on line 9 Warning: unlink(files/..) [function.unlink]: Permission denied in C:\xampplite\htdocs\PhotoUpload\DeleteFiles.php on line 9 #'I'"00 -8%H'+I2!2FF0