#39475 [Opn->Bgs]: FTP and filesize()
| From: | bjori@php.net | Date: | Fri, 08 Dec 2006 07:49:11 +0000 |
| Subject: | #39475 [Opn->Bgs]: FTP and filesize() | ||
| References: | 1 | Groups: | php.doc |
| Request: | Send a blank email to phpdoc+get-969374554@lists.php.net to get a copy of this message | ||
ID: 39475
Updated by: bjori@php.net
Reported By: j dot finlay at optusnet dot com dot au
-Status: Open
+Status: Bogus
Bug Type: Documentation problem
Operating System: Linux
PHP Version: Irrelevant
New Comment:
Don't use --with-curlwrappers
Previous Comments:
------------------------------------------------------------------------
[2006-11-13 21:22:26] j dot finlay at optusnet dot com dot au
I've resolved this issue by writing my own (I think, better) fix in
PHP, its here:
http://au3.php.net/manual/en/function.filesize.php#71098
But this does still not resolve the underlying issue on why its not
working for me.
------------------------------------------------------------------------
[2006-11-13 21:17:23] j dot finlay at optusnet dot com dot au
root@phpos:~> php -v
PHP 5.2.1-dev (cli) (built: Nov 2 2006 20:59:28)
Copyright (c) 1997-2006 The PHP Group
Zend Engine v2.2.0, Copyright (c) 1998-2006 Zend Technologies
root@phpos:~> php -r "echo
filesize('ftp://ftp2.au.netbsd.org/pub/php/php-5.1.1.tar.bz2');"
Warning: filesize(): stat failed for
ftp://ftp2.au.netbsd.org/pub/php/php-5.1.1.tar.bz2
in Command line code
on line 2
root@phpos:~>
------------------------------------------------------------------------
[2006-11-13 19:43:40] trickie at gmail dot com
Works for me:
PHP 5.2.1-dev CLI
Ubuntu 6.10
php -r "echo
filesize('ftp://ftp2.au.netbsd.org/pub/php/php-5.1.1.tar.bz2');"
------------------------------------------------------------------------
[2006-11-12 07:04:36] j dot finlay at optusnet dot com dot au
Originally I thought this was HTTP *and* FTP related, however it seems
the manual only mentions FTP supporting stat() so for all intensive
purposes, change the URL in my example code to:
ftp://ftp2.au.netbsd.org/pub/php/php-5.1.1.tar.bz2
or something else on an FTP server. My apologies.
------------------------------------------------------------------------
[2006-11-12 06:50:10] j dot finlay at optusnet dot com dot au
Changed summary from "HTTP/FTP and filesize()" to just "FTP and
filesize()".
------------------------------------------------------------------------
The remainder of the comments for this report are too long. To view
the rest of the comments, please view the bug report online at
http://bugs.php.net/39475
--
Edit this bug report at http://bugs.php.net/?id=39475&edit=1