hello
pls help me that how to upload a file (8M) on my server with php script.
i use copy, but the server responds "cannot find the pages" or "too large".
in the same script, i upload a file (2k). then the everything is all right.
thanks a lot
pls help me that how to upload a file (8M) on my server with php script.
i use copy, but the server responds "cannot find the pages" or "too large".
in the same script, i upload a file (2k). then the everything is all right.
thanks a lot
PHP:
if (isset($userfile)){
if(is_file("/var/lib/mysql/cnuc/tmp.txt")) {
unlink("/var/lib/mysql/cnuc/tmp.txt");
//echo "1";
}
//echo "2";
copy($userfile, "/var/lib/mysql/cnuc/tmp.txt");
//echo $userfile_name;