any clues why this file:
<?
if ($REQUEST["answered"] == "ok") {
echo "<pre>";
echo $SERVER["SERVER_SOFTWARE"] . "\n\n";
if (is_uploaded_file($FILES["userfile"]["tmp_name"]))
echo "It really is an Uploaded File!\n";
else
echo "It is NOT\n";
echo "These are the contents of the \$FILES array :: \n";
print_r($FILES);
echo "</pre>";
copy($FILES['userfile']['tmp_name'], "/temp_files/" . $_FILES['userfile']['name']);
} else {
?>
<form name="forma" action="<?php $PHP_SELF; ?>" method="post" ENCTYPE="multipart/form-data">
<input type="file" name="userfile">
<input type="hidden" name="answered" value="ok">
<input type="submit">
</form>
<?}?>
is produceing this error message??
It really is an Uploaded File!
These are the contents of the $_FILES array ::
Array
(
[userfile] => Array
(
[name] => test.jpg
[type] => image/pjpeg
[tmp_name] => c:\apache\htdocs\temp_files\phpD9.tmp
[size] => 8070
)
)
Warning: Unable to create '/temp_files/test.jpg': No such file or directory in c:\apache\htdocs\temptest.php on line 12