[!--quoteo(post=378944:date=Jun 1 2006, 12:00 AM:name=hvle)--][div class=\'quotetop\']QUOTE(hvle @ Jun 1 2006, 12:00 AM) [snapback]378944[/snapback][/div][div class=\'quotemain\'][!--quotec--] your $uploaddir should be a directory, it is currently a file. change to: $uploaddir = '"/website_root/color_scripts/'; or something else. also, the directory must be already created and set to writable (0777) [/quote] ok here's the change [code] <?php // In PHP versions earlier than 4.1.0, $HTTP_POST_FILES should be used instead // of $_FILES. [b]$uploaddir = "/website_root/color_scripts/";[/b] $uploadfile = $uploaddir . basename($_FILES['userfile']['name']); echo '<pre>'; if (move_uploaded_file($_FILES['userfile']['tmp_name'], $uploadfile)) { echo "File is valid, and was successfully uploaded.\n"; } else { echo "Possible file upload attack!\n"; } echo 'Here is some more debugging info:'; print_r($_FILES); print "</pre>"; ?> [/code] the directory exists hoW do i set it to writable??