Regarding the website Upload failure, when I upload my website space, echo "temporary directory is empty". Is this a problem configured by the space provider php, the Directory of this program is the up folder. If the website fails to be uploaded, the directory permission is fine. Why? & Lt ;! DOCTYPE & nbsp; html & nbsp; PUBL: Website Upload failure
When uploading my website space, echo is "the temporary directory is empty". Is this a problem with the php configuration of the space provider? the directory for storing this program is the up folder. If the website fails to be uploaded, the directory permission is fine. Why?
Untitled Document
If (@ $ _ POST ['action1'])
{
Set_time_limit (60 );
For ($ I = 1; $ I <3; $ I ++)
{
Echo"
";
$ File = "file ";
$ File = $ file. $ I;
@ $ File_tmp = $ _ FILES ["$ file"] ["tmp_name"];
If (empty ($ file_tmp )){
Echo 'temporary directory empty ';
Exit ();
}
@ $ File_name = $ _ FILES ["$ file"] ["name"];
$ Path = "up \\";
$ Ext = end (explode (".", $ file_name ));
$ File_new_name = time (). ".". $ ext;
$ Filea = $ path. $ file_new_name;
If (copy ($ file_tmp, $ filea ))
{
Echo "successful ";
Echo"
";
Echo "";
}
Else
{
Echo "fail !! ";
Exit (1 );
}
}
}
Else
{
?>
}
?>
------ Solution --------------------
Echo $ _ FILES ["$ file"] ["error"];