★ wanayoo — archive 1999 http://www.php.net/manual/function.ftp-size.phpNouvelle recherche | Portail wanayoo

PHP Home Page

Manual Table of Contents
Up to FTP
Quick Reference
German version of this pageJapanese version of this pageItalian version of this pageFrench version of this pageHungarian version of this page
FTP
* ftp_connect
* ftp_login
* ftp_pwd
* ftp_cdup
* ftp_chdir
* ftp_mkdir
* ftp_rmdir
* ftp_nlist
* ftp_rawlist
* ftp_systype
* ftp_pasv
* ftp_get
* ftp_fget
* ftp_put
* ftp_fput
* ftp_size
* ftp_mdtm
* ftp_rename
* ftp_delete
* ftp_site
* ftp_quit
Manual: ftp_size
View the source code for this pageSearch the site



Previous page
 ftp_fput
 Updated
Sat, 12 Aug 2000
ftp_mdtm 
Next page


ftp_size

(PHP3 >= 3.0.13, PHP4 >= 4.0b4)

ftp_size -- Returns the size of the given file.

Description

int ftp_size (int ftp_stream, string remote_file)

Returns the file size on success, or -1 on error.

ftp_size() returns the size of a file. If an error occurs, of if the file does not exist, -1 is returned. Not all servers support this feature.


User Contributed Notes: ftp_size


c.carchedi@tiscalinet.it
11-May-2000 03:23
whit php and apache server on win32 pc,
when I use ftp_size at an unix machine I have a different result that an ls -l command via telnet on the same unix machine.



 About Notes


Previous page
 ftp_fput
 Updated
Sat, 12 Aug 2000
ftp_mdtm 
Next page





Who's responsible for this?
Top of this page

Site
Hosting:



Located in
United States
Elements of this website are subject to copyright.
Questions about installing or using PHP should be directed to one of the mailing lists.
Only questions about the website should be directed to webmaster@php.net.