elbekko wrote:Or use the FTP functions.
I'd never realised until you mentioned that there was a ftp function. It's not compiled by default, is it? Is the fopen method safe/reliable enough, or would I be better recompiling and using ftp, or using the fsockopen function as mentioned above?
The only thing this is being used to do is to check if the ftp server is returning a file available response for a file, so that a message can be given to browsers if the ftp server is not accepting further connections. Some browsers seem to have trouble handling some ftp server responses correctly, so it's just to take any browser deviation out of the equation.