<HTML ><HEAD ><TITLE >hw_DocumentSetContent</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="Hyperwave functions" HREF="ref.hyperwave.html"><LINK REL="PREVIOUS" TITLE="hw_DocumentContent" HREF="function.hw-documentcontent.html"><LINK REL="NEXT" TITLE="hw_DocumentSize" HREF="function.hw-documentsize.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.hw-documentcontent.html" >Prev</A ></TD ><TD WIDTH="80%" ALIGN="center" VALIGN="bottom" ></TD ><TD WIDTH="10%" ALIGN="right" VALIGN="bottom" ><A HREF="function.hw-documentsize.html" >Next</A ></TD ></TR ></TABLE ><HR ALIGN="LEFT" WIDTH="100%"></DIV ><H1 ><A NAME="function.hw-documentsetcontent" >hw_DocumentSetContent</A ></H1 ><DIV CLASS="refnamediv" ><A NAME="AEN10611" ></A >hw_DocumentSetContent -- sets/replaces content of hw_document</DIV ><DIV CLASS="refsect1" ><A NAME="AEN10614" ></A ><H2 >Description</H2 ><DIV CLASS="funcsynopsis" ><P ></P ><CODE CLASS="FUNCDEF" >string hw_documentsetcontent</CODE >(int hw_document, string content);<P ></P ></DIV ><P > Sets or replaces the content of the document. If the document is an HTML document the content is everything after the BODY tag. Information from the HEAD and BODY tag is in the stored in the object record. If you provide this information in the content of the document too, the Hyperwave server will change the object record accordingly when the document is inserted. Probably not a very good idea. If this functions fails the document will retain its old content.</P ><P > See also <B CLASS="function" >hw_DocumentAttributes()</B >, <B CLASS="function" >hw_DocumentSize()</B >, <B CLASS="function" >hw_DocumentContent()</B >.</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.hw-documentcontent.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="function.hw-documentsize.html" >Next</A ></TD ></TR ><TR ><TD WIDTH="33%" ALIGN="left" VALIGN="top" >hw_DocumentContent</TD ><TD WIDTH="34%" ALIGN="center" VALIGN="top" ><A HREF="ref.hyperwave.html" >Up</A ></TD ><TD WIDTH="33%" ALIGN="right" VALIGN="top" >hw_DocumentSize</TD ></TR ></TABLE ></DIV ></BODY ></HTML >