recode_file(3) php man page | unix.com

Man Page: recode_file

Operating Environment: php

Section: 3

RECODE_FILE(3)								 1							    RECODE_FILE(3)

recode_file - Recode from file to file according to recode request

SYNOPSIS
bool recode_file (string $request, resource $input, resource $output)
DESCRIPTION
Recode the file referenced by file handle $input into the file referenced by file handle $output according to the recode $request.
PARAMETERS
o $request - The desired recode request type o $input - A local file handle resource for the $input o $output - A local file handle resource for the $output
RETURN VALUES
Returns FALSE, if unable to comply, TRUE otherwise.
EXAMPLES
Example #1 Basic recode_file(3) example <?php $input = fopen('input.txt', 'r'); $output = fopen('output.txt', 'w'); recode_file("us..flat", $input, $output); ?>
NOTES
This function does not currently process file handles referencing remote files (URLs). Both file handles must refer to local files.
SEE ALSO
fopen(3). PHP Documentation Group RECODE_FILE(3)
Related Man Pages
fgets(3) - php
bcompiler_write_file(3) - php
fpassthru(3) - php
ftell(3) - php
xml_parser_create_ns(3) - php
Similar Topics in the Unix Linux Community
UNIX.COM 2017 Year End Summary
New Code Tags (Syntax Highlighting)
Please Welcome Ravinder Singh to the Moderation Team
The Order of the Wizard's Hat - Lifetime Achievement Award 2019 - Congrats to Don Cragun
The Order of the Wizard's Hat - Lifetime Achievement Award 2019 - Congrats to Wolf Machowitsch