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 requestSYNOPSISbool recode_file (string $request, resource $input, resource $output)DESCRIPTIONRecode the file referenced by file handle $input into the file referenced by file handle $output according to the recode $request.PARAMETERSo $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 $outputRETURN VALUESReturns FALSE, if unable to comply, TRUE otherwise.EXAMPLESExample #1 Basic recode_file(3) example <?php $input = fopen('input.txt', 'r'); $output = fopen('output.txt', 'w'); recode_file("us..flat", $input, $output); ?>NOTESThis function does not currently process file handles referencing remote files (URLs). Both file handles must refer to local files.SEE ALSOfopen(3). PHP Documentation Group RECODE_FILE(3)
Related Man Pages |
---|
fscanf(3) - php |
bcompiler_write_constant(3) - php |
copy(3) - php |
fpassthru(3) - php |
ftell(3) - php |