October 4th, 2010, 04:20 AM
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 http://php.net/manual/en/function.ftp-size.php, 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?
October 4th, 2010, 04:37 AM
It seems IIS 7.5 does support SIZE so this is really a question about how to enable the support or whatever.
While I move this, got a question or two:
If you connect to the server yourself (like opening cmd.exe, typing "ftp host", and logging in as needed) and run "FEAT", what do you get back? If you then try "SIZE filename" what happens?
October 4th, 2010, 04:42 AM
Hi, thanks for the reply, I got Invalid Command for both.
October 4th, 2010, 02:16 PM
I don't use IIS FTP and have no clue, sorry.
Bartender to Rene Descartes "have another beer?" Descartes: "I think not" and he vanished.
October 5th, 2010, 06:43 AM
When I access the FTP site through IE8/FireFox, the file sizes are displayed, but SIZE is not enabled through CMD.exe,
CMD.exe > ftp host > username > password > ?
neither FEAT nor SIZE were displayed
Has anyone got any ideas on this? This is litterally the last part of my application and desperate to get this sorted!
October 5th, 2010, 07:46 AM
Only thing I can think of, besides a lot of Googling, is to run a packet sniffer and see what Firefox is doing. Wireshark is the best - there are portable versions if you don't want to install it.