I uploaded files via FTP through ftp written on the webpage. However, during uploading, I found that all the small files can be uploaded to the ftp server smoothly, however, if a large document (it seems to be more than 2 GB) is displayed: ftp_nb_fput () expectsparameter3toberesource, booleangiv.pdf what is going on? How can this problem be solved? Expert guidance! ------ Solution ------- upload files through FTP
I uploaded the file via ftp written on the webpage, but I found that all the small files can be uploaded to the ftp server smoothly. However, if the file size is large (it seems to be larger than 2 GB) it will show: ftp_nb_fput () expects parameter 3 to be resource, boolean given in what is going on? How can this problem be solved? Expert guidance!
------ Solution --------------------
The resource type parameter to be passed by the ftp_nb_fput () function is incorrect. A Boolean value is given. Check your code
Do I like to claim to be a girl after xx? Do you like to give it a feeling?
------ Solution --------------------
Discussion
Parameter error? No, but all small documents can be uploaded. I tried again just now. an error occurs when the document is uploaded more than 2 MB. I changed php. the maximum Upload volume allowed in ini has been restarted, but it still does not work!
I am not a self-proclaimed little girl, because a big brother told me that, in this case, more Big Brother can help me, just want to solve the problem, not much else. If this is wrong, I will not do it in the future. sorry!
------ Solution --------------------
No matter whether it is or not, I don't care.
Back to your issue, there have been some abnormal feedback on the php Upload of more than 2 GB files, but I'm not sure whether this applies to the php ftp mode, therefore, if the code does not have a problem, it may also cause errors, or if the code does not have an error, but the file cannot be uploaded.
Php. ini and then modify max_execution_time = 0
And memory_limit = (1G 256 M ratio)
Restart apache and try again.