Re: [PHP] upload file problem
- From: parasane@xxxxxxxxx ("Daniel Brown")
- Date: Thu, 31 Jul 2008 12:54:04 -0400
On Thu, Jul 31, 2008 at 10:18 AM, Jignesh Thummar
<jignesh.thummar@xxxxxxxxx> wrote:
I'm trying to upload the file. It's showing me successfully uploaded.
But it's not able to move from temp directory to my defined directory
my code:
if (is_uploaded_file($_FILES['myfile']['tmp_name'])) {
move_uploaded_file($_FILES['myfile']['tmp_name'], $myfilename);
echo "File ". $_FILES['myfile']['name'] ." uploaded successfully.\n";
} else {
echo "File uploading error";
}
If it is passing the if(is_uploaded_file()) condition, echo out
$myfilename and make sure it's valid to use as a path/filename.
--
</Daniel P. Brown>
Better prices on dedicated servers:
Intel 2.4GHz/60GB/512MB/2TB $49.99/mo.
Intel 3.06GHz/80GB/1GB/2TB $59.99/mo.
Dedicated servers, VPS, and hosting from $2.50/mo.
.
- References:
- upload file problem
- From: "Jignesh Thummar"
- upload file problem
- Prev by Date: Re: [PHP] accessing variables within objects
- Next by Date: RE: [PHP] Dynamic Select Lists - 1st Selection Effects 2nd!
- Previous by thread: Re: [PHP] upload file problem
- Next by thread: Re: [PHP] upload file problem
- Index(es):
Relevant Pages
|