|PHP/FTP ftp_put() throws weird error messages - what to do?||#1|
ftp_put / ftp_nb_put
to upload files from my PHP server to another machine. I am frequently (90% of the time) getting absurd error messages like:
Warning: ftp_nb_put(): 2 matches total
Warning: ftp_nb_put(): Transfer complete
Warning: ftp_nb_continue(): Opening BINARY mode data connection
Now errors like "no such directory" or "incorrect password" I could handle, but these "error message" seem to be completely pointless.
Google suggests this to be a Firewall/PASV-related problem. I have tried ftp_pasv(), but to no avail. I have contacted my server admin, but so far he hasn't come up with anything either.
posted date: 2008-12-17 12:45:00
|Re: PHP/FTP ftp_put() throws weird error messages - what to do?||#3|
This is not extremly helpful, but I also suggest that while you watch the php error log, open the ftp's in another window and try to figure out all things related. Most ftp servers have their own logfiles, or log to syslog.Maybe you can replicate the environment with a vmware disk image, or in virtualbox (or similar) and debug this faster.
posted date: 2008-12-19 03:32:00
|Re: PHP/FTP ftp_put() throws weird error messages - what to do?||#4|
Well, since these are only warnings and you get the job done correctly, you can turn warnings off using ini_set() or altering php.ini This won't solve anything but you surely won't get the errors :)
posted date: 2008-12-27 22:46:00
|Re: PHP/FTP ftp_put() throws weird error messages - what to do?||#5|
The messages where symptoms of some arcane networking problems the server had. PHP does not diagnose such problems correctly and outputs seemingly random snippets from the communication between servers.Not actually a programming question, rather a "server fault" issue (or rather a "get a better webhoster" issue).
posted date: 2009-06-14 05:33:00
|select page: « 1 »|