The Shed is going Social! Join us on FaceBook and Twitter and chime in on the conversation.
|
 |
|
Dev Shed Forums
> System Administration
> IIS
|
Enabling FTP's SIZE command on IIS 7.5 (was "PHP ftp_size")
Discuss Enabling FTP's SIZE command on IIS 7.5 (was "PHP ftp_size") in the IIS forum on Dev Shed. Enabling FTP's SIZE command on IIS 7.5 (was "PHP ftp_size") IIS forum discussing Microsoft's Internet Information Server including its configuration, optimization and other related topics. IIS is the most popular web server for the Windows platform.
|
|
 |
|
|
|
|

Dev Shed Forums Sponsor:
|
|
|

October 4th, 2010, 04:20 AM
|
|
Contributing User
|
|
Join Date: Jul 2009
Posts: 86
Time spent in forums: 20 h 44 m 55 sec
Reputation Power: 4
|
|
|
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 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?
Cheers
|

October 4th, 2010, 04:37 AM
|
 |
Still alive
|
|
Join Date: Mar 2007
Location: Washington, USA
|
|
|
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
|
|
Contributing User
|
|
Join Date: Jul 2009
Posts: 86
Time spent in forums: 20 h 44 m 55 sec
Reputation Power: 4
|
|
|
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.
__________________
======
Doug G
======
It is a truism of American politics that no man who can win an election deserves to. --Trevanian, from the novel Shibumi
|

October 5th, 2010, 06:43 AM
|
|
Contributing User
|
|
Join Date: Jul 2009
Posts: 86
Time spent in forums: 20 h 44 m 55 sec
Reputation Power: 4
|
|
|
When I access the FTP site through IE8/FireFox, the file sizes are displayed, but SIZE is not enabled through CMD.exe,
I tested:
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
|
 |
Still alive
|
|
Join Date: Mar 2007
Location: Washington, USA
|
|
|
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.
|
Developer Shed Advertisers and Affiliates
| Thread Tools |
Search this Thread |
|
|
|
| Display Modes |
Rate This Thread |
Linear Mode
|
|
Posting Rules
|
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
HTML code is Off
|
|
|
|
|