PHP ftp_size

Hi Chaps,

I’m trying to read the file size on an FTP site.

I’ve been using ftp_size() which worked, but since have upgraded our server to IIS 7.5.

I read on, that not all servers support this.

Is there something on the server that I can change to enable this? Or is there something else I can try?


I would recommend avoiding IIS and windows based platforms, as you will find a lot of niggly things like this missing.

If it is not an option to change then you could try ftp_rawlist() for the current directory and then pick out your file. Not as efficient but could work.