upload_tmp_dir has no value... could that be the problem?
| From: | Jason | Date: | Thu, 06 Nov 2003 17:18:04 +0000 |
| Subject: | upload_tmp_dir has no value... could that be the problem? | ||
| Groups: | php.general | ||
| Request: | Send a blank email to php-general+get-168755@lists.php.net to get a copy of this message | ||
All,
Trying to run an upload script.
<?php
if ($userfile=="none")
{
echo "Problem: no file uploaded";
exit;
}
if (move_uploaded_file($userfile,".".$userfile_name))
echo "your file was loaded successfully";
}
else
{
echo "nope";
exit;
}
?>
Looks like the problems is in the "if (move_uploaded_file.." line also a
look at the configuration of PHP4.1.2 shows "no value" for upload_tmp_dir
Any hints?
Jason