<HTML ><HEAD ><TITLE >recode_file</TITLE ><META NAME="GENERATOR" CONTENT="Modular DocBook HTML Stylesheet Version 1.44"><LINK REL="HOME" TITLE="PHP Manual" HREF="manual.html"><LINK REL="UP" TITLE="GNU Recode functions" HREF="ref.recode.html"><LINK REL="PREVIOUS" TITLE="recode_string" HREF="function.recode-string.html"><LINK REL="NEXT" TITLE="Regular expression functions" HREF="ref.regex.html"></HEAD ><BODY BGCOLOR="#FFFFFF" TEXT="#000000" LINK="#0000FF" VLINK="#840084" ALINK="#0000FF" ><DIV CLASS="NAVHEADER" ><TABLE WIDTH="100%" BORDER="0" CELLPADDING="0" CELLSPACING="0" ><TR ><TH COLSPAN="3" ALIGN="center" >PHP Manual</TH ></TR ><TR ><TD WIDTH="10%" ALIGN="left" VALIGN="bottom" ><A HREF="function.recode-string.html" >Prev</A ></TD ><TD WIDTH="80%" ALIGN="center" VALIGN="bottom" ></TD ><TD WIDTH="10%" ALIGN="right" VALIGN="bottom" ><A HREF="ref.regex.html" >Next</A ></TD ></TR ></TABLE ><HR ALIGN="LEFT" WIDTH="100%"></DIV ><H1 ><A NAME="function.recode-file" >recode_file</A ></H1 ><DIV CLASS="refnamediv" ><A NAME="AEN24580" ></A >recode_file -- Recode from file to file according to recode request.</DIV ><DIV CLASS="refsect1" ><A NAME="AEN24583" ></A ><H2 >Description</H2 ><DIV CLASS="funcsynopsis" ><P ></P ><CODE CLASS="FUNCDEF" >bool recode_file</CODE >(int input, int output);<P ></P ></DIV ><P > Recode the file referenced by file handle <TT CLASS="parameter" ><I >input</I ></TT > into the file referenced by file handle <TT CLASS="parameter" ><I >output</I ></TT > according to the recode request <TT CLASS="parameter" ><I >request</I ></TT >. Returns FALSE, if unable to comply, TRUE otherwise.</P ><P > This function does not currently process filehandles referencing remote files (URLs). Both filehandles must refer to local files. </P ></DIV ><DIV CLASS="NAVFOOTER" ><HR ALIGN="LEFT" WIDTH="100%"><TABLE WIDTH="100%" BORDER="0" CELLPADDING="0" CELLSPACING="0" ><TR ><TD WIDTH="33%" ALIGN="left" VALIGN="top" ><A HREF="function.recode-string.html" >Prev</A ></TD ><TD WIDTH="34%" ALIGN="center" VALIGN="top" ><A HREF="manual.html" >Home</A ></TD ><TD WIDTH="33%" ALIGN="right" VALIGN="top" ><A HREF="ref.regex.html" >Next</A ></TD ></TR ><TR ><TD WIDTH="33%" ALIGN="left" VALIGN="top" >recode_string</TD ><TD WIDTH="34%" ALIGN="center" VALIGN="top" ><A HREF="ref.recode.html" >Up</A ></TD ><TD WIDTH="33%" ALIGN="right" VALIGN="top" >Regular expression functions</TD ></TR ></TABLE ></DIV ></BODY ></HTML >