|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
[2000-11-10 17:08 UTC] zak@php.net
[2000-11-21 08:32 UTC] stas@php.net
|
|||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Thu Nov 06 10:00:01 2025 UTC |
recode_file() generates a spurious warning when the 'input' file handle has had data sent to it from a file handle that references a remote system. Despite the warning, the recode attempt succeeds - converting between character sets and writing the data to the 'output' file handle See the script below. # Open a local file (instead of URL) and no warning is generated $input = fopen ('http://www.netscape.com/', 'r'); $tmp = tmpfile (); while (! feof ($input)) fwrite ($tmp, fgets ($input, 1024)); rewind ($tmp); recode_file ('us..flat', $tmp, tmpfile ());