Re: upload file problem

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Maybe check the return value of the function:
http://us3.php.net/manual/en/function.move-uploaded-file.php

Thank you,
Micah Gersten
onShore Networks
Internal Developer
http://www.onshore.com



Jignesh Thummar 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";
> }
>
> Thanks in advance.
>
> -Jignesh
>
>   

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


[Index of Archives]     [PHP Home]     [Apache Users]     [PHP on Windows]     [Kernel Newbies]     [PHP Install]     [PHP Classes]     [Pear]     [Postgresql]     [Postgresql PHP]     [PHP on Windows]     [PHP Database Programming]     [PHP SOAP]

  Powered by Linux