php man page for recode_file

Query: recode_file

OS: php

Section: 3

Format: Original Unix Latex Style Formatted with HTML and a Horizontal Scroll Bar

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_functions_from_file(3) - php
fprintf(3) - php
ftell(3) - php
rewind(3) - php
Similar Topics in the Unix Linux Community
UNIX.COM 2017 Year End Summary
Please Welcome Don Cragun as Lead Moderator
Please Welcome Ravinder Singh to the Moderation Team
The Order of the Wizard's Hat - Lifetime Achievement Award 2019 - Congrats to Don Cragun
Please Welcome Nicki Paul to the Moderator Team!