Having struggled with this problem for the last 2 days can someone please help!
I am using ftp from my own server to an ftp server my ISP provides. I am using the latest version of PHP which allows me to use the ftp_nb_put functions.
I can upload files 2,3,4mb in size without a problem using both ftp_put and ftp_nb_put but when I try to upload a file that is 5.2mb in size i get the following :-
Warning: ftp_put() [function.ftp-put]: Opening BINARY mode data connection for /htdocs/support_documents/software/fred.exe
This only happens on the 5.2mb file and is really frustrating. Even though this warning is returned the file has actually been uploaded to the webspace and compares in file size to the actual file chosen for upload.
I have gone through the php.ini file and set everything to gigantic in an effort to identify what is causing this and can only think that it is a problem within php.
Another point! When I upload the smaller files (1,2,3mb) the browser returns my page instantly. When I try and upload the large file it takes some 60seconds after the file has been uploaded (confirmed by monitoring ftp space using ftp client) before the browser returns the page.
I hope that someone out there might have an idea!
Regards
Phil