|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
[2002-10-04 05:17 UTC] mfischer@php.net
[2002-10-05 06:33 UTC] mfischer@php.net
|
|||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Sat Nov 01 12:00:01 2025 UTC |
Hello, previous reported bug with function file is still in PHP 4.2.3. I tried this simple script: <? if ($fr = fopen("ftp://ftp.zcu.cz/mirrors/simtelnet/gnu/gnuish/00-index", "r")) { $data = fread($fr, 20000000); printf("%s", $data); fclose($fr); } ?> the file on FTP exists and I always get: <b>Warning</b>: php_hostconnect: connect failed in ... <b>Warning</b>: fopen("ftp://ftp.zcu.cz/mirrors/simtelnet/gnu/gnuish/00-index", "r") - Bad file descriptor in ... -- Now I tried the latest snapshot (php4-200210040000) and the script do nothing -- just waiting to max_execution_time :-( My PHP config line: './configure' '--enable-versioning' '--with-mysql=/usr/local/mysql' '--enable-track-vars' '--with-gd' '--with-xml' '--disable-debug' '--enable-sysvshm' '--enable-sysvsem' '--with-jpeg-dir' '--with-tiff-dir' '--enable-trans-sid' '--with-config-file-path=/usr/local/apache/conf' '--with-zlib-dir' '--enable-sockets' '--with-pgsql=/usr/local/postgresql' '--enable-gd-native-ttf' '--with-png-dir' OS: Linux, kernel 2.4.17 #1 Petr Grolmus