CVS update: php3/doc/functions
| From: | eschmid | Date: | Sat, 17 Apr 1999 07:13:11 +0000 |
| Subject: | CVS update: php3/doc/functions | ||
| Groups: | php.dev | ||
| Request: | Send a blank email to php-dev+get-5109@lists.php.net to get a copy of this message | ||
Date: Saturday April 17, 1999 @ 3:13
Author: eschmid
Update of /repository/php3/doc/functions
In directory asf:/u/temp/cvs-serv15009
Modified Files:
filesystem.sgml hw.sgml pdf.sgml
Log Message:
Some corrections
Index: php3/doc/functions/filesystem.sgml
diff -c php3/doc/functions/filesystem.sgml:1.42 php3/doc/functions/filesystem.sgml:1.43
*** php3/doc/functions/filesystem.sgml:1.42 Fri Apr 16 01:24:51 1999
--- php3/doc/functions/filesystem.sgml Sat Apr 17 03:13:11 1999
***************
*** 967,973 ****
</refsect1>
</refentry>
! <refentry id="function.set_file_buffer">
<refnamediv>
<refname>set_file_buffer</refname>
<refpurpose>Sets file buffering on the given file pointer</refpurpose>
--- 967,973 ----
</refsect1>
</refentry>
! <refentry id="function.set-file-buffer">
<refnamediv>
<refname>set_file_buffer</refname>
<refpurpose>Sets file buffering on the given file pointer</refpurpose>
Index: php3/doc/functions/hw.sgml
diff -c php3/doc/functions/hw.sgml:1.17 php3/doc/functions/hw.sgml:1.18
*** php3/doc/functions/hw.sgml:1.17 Fri Apr 16 08:09:46 1999
--- php3/doc/functions/hw.sgml Sat Apr 17 03:13:11 1999
***************
*** 338,355 ****
The second array <parameter>add</parameter> is a list of attributes
to add. In order to modify an attribute one will have to remove
the old one and add a new one.
<example>
<title>modifying an attribute</title>
! If you would like to change the attribute 'Name' with the
! current value 'books' into 'articles' you will have to create
! two arrays and call <function>hw_modifyobject</function>.
! <programmlisting>
// $connect is an existing connection to the Hyperwave server
// $objid is the ID of the object to modify
$remarr = array("Name" => "books");
$addarr = array("Name" => "articles");
$hw_modifyobject($connect, $objid, $remarr, $addarr);
! </programmlisting>
</example>
In order to delete/add a name=value pair from/to the object record just
pass the remove/add array and set the last/third parameter to NULL.
--- 338,356 ----
The second array <parameter>add</parameter> is a list of attributes
to add. In order to modify an attribute one will have to remove
the old one and add a new one.
+ <para>
+ If you would like to change the attribute 'Name' with the current
+ value 'books' into 'articles' you will have to create two arrays
+ and call <function>hw_modifyobject</function>.
<example>
<title>modifying an attribute</title>
! <programlisting role="php">
// $connect is an existing connection to the Hyperwave server
// $objid is the ID of the object to modify
$remarr = array("Name" => "books");
$addarr = array("Name" => "articles");
$hw_modifyobject($connect, $objid, $remarr, $addarr);
! </programlisting>
</example>
In order to delete/add a name=value pair from/to the object record just
pass the remove/add array and set the last/third parameter to NULL.
***************
*** 358,368 ****
native form 'language':'title'. The above example would than be:
<example>
<title>modifying Title attribute</title>
! <programmlisting>
$remarr = array("Title" => "en:Books");
$addarr = array("Title" => "en:Articles");
$hw_modifyobject($connect, $objid, $remarr, $addarr);
! </programmlisting>
</example>
This removes the english title 'Books' and adds the english title
'Articles'.
--- 359,369 ----
native form 'language':'title'. The above example would than be:
<example>
<title>modifying Title attribute</title>
! <programlisting role="php">
$remarr = array("Title" => "en:Books");
$addarr = array("Title" => "en:Articles");
$hw_modifyobject($connect, $objid, $remarr, $addarr);
! </programlisting>
</example>
This removes the english title 'Books' and adds the english title
'Articles'.
Index: php3/doc/functions/pdf.sgml
diff -c php3/doc/functions/pdf.sgml:1.21 php3/doc/functions/pdf.sgml:1.22
*** php3/doc/functions/pdf.sgml:1.21 Wed Apr 14 08:58:21 1999
--- php3/doc/functions/pdf.sgml Sat Apr 17 03:13:11 1999
***************
*** 64,72 ****
PDF_close($pdf);
echo "<A HREF=gettest.php3>finished</A>";
?>
! </programlisting>
! The php3 file gettext.php3 just outputs the pdf document.
! <programlisting>
<?php
$fp = fopen("test.pdf", "r");
header("Content-type: application/pdf");
--- 64,73 ----
PDF_close($pdf);
echo "<A HREF=gettest.php3>finished</A>";
?>
! </programlisting>
! <para>
! The php3 file gettext.php3 just outputs the pdf document.
! <programlisting>
<?php
$fp = fopen("test.pdf", "r");
header("Content-type: application/pdf");
--
PHP Development Mailing List http://www.php.net/
To unsubscribe send an empty message to php-dev-unsubscribe@lists.php.net
For help: php-dev-help@lists.php.net