Thanks, I didn't even notice that. However, i'm still having problems. I even downloaded a pre-made upload script and i can't get it to work. Here is what my php ini line now looks like:
upload_tmp_dir = c:/apache/htdocs/uploads/ ; temporary directory for HTTP uploaded files (will use system default if not specified)
I even tried leaving it blank so that the default would be used but that didn't work either.
I'm going to post the entire script (with a link to where I got the script).
<?php
//http://www.skinsntemplates.com/view.php?id=50&title=File%20Uploads
//Define some variables
$dir = "c:/apache/htdocs/uploads2/"; //Change this to the correct dir
//MIME types to allow, Gif, jpeg, JPG, zip ::Edit this to your liking
$types = array("image/gif","image/pjpeg","application/x-zip-compressed");
//Check to determine if the submit button has been pressed
if(isset($_POST['submit'])){
//Shorten Variables
$tmp_name = $_FILES['upload']['tmp_name'];
$new_name = $_FILES['upload']['name'];
//Check MIME Type
if (in_array($_FILES['upload']['type'], $types)){
//Move file from tmp dir to new location
move_uploaded_file($tmp_name,$dir . $new_name);
echo "{$_FILES['upload']['name']} was uploaded sucessfully!";
}else{
//Print Error Message
echo "<small>File <strong><em>{$_FILES['upload']['name']}</em></strong> Was Not
Uploaded!</small><br />";
//Debug
$name = $_FILES['upload']['name'];
$type = $_FILES['upload']['type'];
$size = $_FILES['upload']['size'];
$tmp = $_FILES['upload']['name'];
echo "Name: $name<br/ >Type: $type<br />Size: $size<br />Tmp: $tmp";
}
}
else{
echo 'Could Not Upload Files';
}
?>
<form action="<?php echo $_SERVER['PHP_SELF']; ?>" method="post"
enctype="multipart/form-data">
<fieldset>
<legend>Upload Files</legend>
<input type="file" name="upload" />
</fieldset>
<input type="submit" name="submit" value="Upload Files" />
</form>