<HTML ><HEAD ><TITLE >hw_New_Document</TITLE ><META NAME="GENERATOR" CONTENT="Modular DocBook HTML Stylesheet Version 1.7"><LINK REL="HOME" TITLE="PHP Manual" HREF="index.html"><LINK REL="UP" TITLE="Hyperwave functions" HREF="ref.hyperwave.html"><LINK REL="PREVIOUS" TITLE="hw_Mv" HREF="function.hw-mv.html"><LINK REL="NEXT" TITLE="hw_Objrec2Array" HREF="function.hw-objrec2array.html"><META HTTP-EQUIV="Content-type" CONTENT="text/html; charset=ISO-8859-1"></HEAD ><BODY CLASS="refentry" BGCOLOR="#FFFFFF" TEXT="#000000" LINK="#0000FF" VLINK="#840084" ALINK="#0000FF" ><DIV CLASS="NAVHEADER" ><TABLE SUMMARY="Header navigation 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.hw-mv.html" ACCESSKEY="P" >Prev</A ></TD ><TD WIDTH="80%" ALIGN="center" VALIGN="bottom" ></TD ><TD WIDTH="10%" ALIGN="right" VALIGN="bottom" ><A HREF="function.hw-objrec2array.html" ACCESSKEY="N" >Next</A ></TD ></TR ></TABLE ><HR ALIGN="LEFT" WIDTH="100%"></DIV ><H1 ><A NAME="function.hw-new-document" ></A >hw_New_Document</H1 ><DIV CLASS="refnamediv" ><A NAME="AEN32049" ></A ><P > (PHP 3>= 3.0.3, PHP 4 )</P >hw_New_Document -- create new document</DIV ><DIV CLASS="refsect1" ><A NAME="AEN32052" ></A ><H2 >Description</H2 >int <B CLASS="methodname" >hw_new_document</B > ( string object_record, string document_data, int document_size)<BR ></BR ><P > Returns a new Hyperwave document with document data set to <TT CLASS="parameter" ><I >document_data</I ></TT > and object record set to <TT CLASS="parameter" ><I >object_record</I ></TT >. The length of the <TT CLASS="parameter" ><I >document_data</I ></TT > has to passed in <TT CLASS="parameter" ><I >document_size</I ></TT >This function does not insert the document into the Hyperwave server. </P ><P > See also <A HREF="function.hw-free-document.html" ><B CLASS="function" >hw_free_document()</B ></A >, <A HREF="function.hw-document-size.html" ><B CLASS="function" >hw_document_size()</B ></A >, <A HREF="function.hw-document-bodytag.html" ><B CLASS="function" >hw_document_bodytag()</B ></A >, <A HREF="function.hw-output-document.html" ><B CLASS="function" >hw_output_document()</B ></A >, and <A HREF="function.hw-insertdocument.html" ><B CLASS="function" >hw_insertdocument()</B ></A >. </P ></DIV ><DIV CLASS="NAVFOOTER" ><HR ALIGN="LEFT" WIDTH="100%"><TABLE SUMMARY="Footer navigation table" WIDTH="100%" BORDER="0" CELLPADDING="0" CELLSPACING="0" ><TR ><TD WIDTH="33%" ALIGN="left" VALIGN="top" ><A HREF="function.hw-mv.html" ACCESSKEY="P" >Prev</A ></TD ><TD WIDTH="34%" ALIGN="center" VALIGN="top" ><A HREF="index.html" ACCESSKEY="H" >Home</A ></TD ><TD WIDTH="33%" ALIGN="right" VALIGN="top" ><A HREF="function.hw-objrec2array.html" ACCESSKEY="N" >Next</A ></TD ></TR ><TR ><TD WIDTH="33%" ALIGN="left" VALIGN="top" >hw_Mv</TD ><TD WIDTH="34%" ALIGN="center" VALIGN="top" ><A HREF="ref.hyperwave.html" ACCESSKEY="U" >Up</A ></TD ><TD WIDTH="33%" ALIGN="right" VALIGN="top" >hw_Objrec2Array</TD ></TR ></TABLE ></DIV ></BODY ></HTML >