• Howdy! Welcome to our community of more than 130.000 members devoted to web hosting. This is a great place to get special offers from web hosts and post your own requests or ads. To start posting sign up here. Cheers! /Peo, FreeWebSpace.net
managed wordpress hosting

PHP help

rotan

New Member
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

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;
 
you should check the "upload_max_filesize" configuration of your server and see if it allows 8MB or more. you can do this using phpinfo();
 
thanks for your help
but i checked the phpinfo(), it show me as following:

Directive Local Value Master Value
upload_max_filesize 12M 12M
upload_tmp_dir no value no value
user_dir no value no value


but the php scripts do nothing.
thanks again
 
thanks
i changed it as following:

max_execution_time 300 300
max_input_time 600 600
memory_limit 20M 20M

but i got the same result
 
Back
Top