[PHP-DOC] cvs: phpdoc /en/reference/http/functions headers-sent.xml

2006-02-28 Thread Jakub Vrana
vrana   Wed Mar  1 04:32:50 2006 UTC

  Modified files:  
/phpdoc/en/reference/http/functions headers-sent.xml 
  Log:
  Typo (bug #36564)
  
http://cvs.php.net/viewcvs.cgi/phpdoc/en/reference/http/functions/headers-sent.xml?r1=1.16r2=1.17diff_format=u
Index: phpdoc/en/reference/http/functions/headers-sent.xml
diff -u phpdoc/en/reference/http/functions/headers-sent.xml:1.16 
phpdoc/en/reference/http/functions/headers-sent.xml:1.17
--- phpdoc/en/reference/http/functions/headers-sent.xml:1.16Wed Nov 10 
08:30:30 2004
+++ phpdoc/en/reference/http/functions/headers-sent.xml Wed Mar  1 04:32:50 2006
@@ -1,5 +1,5 @@
 ?xml version=1.0 encoding=iso-8859-1?
-!-- $Revision: 1.16 $ --
+!-- $Revision: 1.17 $ --
 !-- splitted from ./en/functions/http.xml, last change in rev 1.7 --
   refentry id=function.headers-sent
refnamediv
@@ -30,7 +30,7 @@
 note
  simpara
   The optional parameterfile/parameter and parameterline/parameter 
-  parameters where added in PHP 4.3.0.
+  parameters were added in PHP 4.3.0.
  /simpara
 /note
 para


[PHP-DOC] cvs: phpdoc /en/reference/http/functions headers-sent.xml setcookie.xml

2003-01-27 Thread Damien Seguy
damsMon Jan 27 22:02:39 2003 EDT

  Modified files:  
/phpdoc/en/reference/http/functions headers-sent.xml setcookie.xml 
  Log:
  boolean - bool
  
Index: phpdoc/en/reference/http/functions/headers-sent.xml
diff -u phpdoc/en/reference/http/functions/headers-sent.xml:1.11 
phpdoc/en/reference/http/functions/headers-sent.xml:1.12
--- phpdoc/en/reference/http/functions/headers-sent.xml:1.11Sun Dec  1 05:52:42 
2002
+++ phpdoc/en/reference/http/functions/headers-sent.xml Mon Jan 27 22:02:38 2003
@@ -1,5 +1,5 @@
 ?xml version=1.0 encoding=iso-8859-1?
-!-- $Revision: 1.11 $ --
+!-- $Revision: 1.12 $ --
 !-- splitted from ./en/functions/http.xml, last change in rev 1.7 --
   refentry id=function.headers-sent
refnamediv
@@ -9,7 +9,7 @@
refsect1
 titleDescription/title
  methodsynopsis
-  typeboolean/typemethodnameheaders_sent/methodname  
+  typebool/typemethodnameheaders_sent/methodname  
   methodparam 
choice=opttypestring/typeparameteramp;file/parameter/methodparam
   methodparam 
choice=opttypeint/typeparameteramp;line/parameter/methodparam
  /methodsynopsis
Index: phpdoc/en/reference/http/functions/setcookie.xml
diff -u phpdoc/en/reference/http/functions/setcookie.xml:1.17 
phpdoc/en/reference/http/functions/setcookie.xml:1.18
--- phpdoc/en/reference/http/functions/setcookie.xml:1.17   Tue Jan 21 22:24:26 
2003
+++ phpdoc/en/reference/http/functions/setcookie.xmlMon Jan 27 22:02:39 2003
@@ -1,6 +1,6 @@
 
 ?xml version=1.0 encoding=iso-8859-1?
-!-- $Revision: 1.17 $ --
+!-- $Revision: 1.18 $ --
 !-- splitted from ./en/functions/http.xml, last change in rev 1.2 --
   refentry id=function.setcookie
refnamediv
@@ -10,7 +10,7 @@
refsect1
 titleDescription/title
  methodsynopsis
-  typeboolean/typemethodnamesetcookie/methodname
+  typebool/typemethodnamesetcookie/methodname
   methodparamtypestring/typeparametername/parameter/methodparam
   methodparam 
choice=opttypestring/typeparametervalue/parameter/methodparam
   methodparam 
choice=opttypeint/typeparameterexpire/parameter/methodparam



-- 
PHP Documentation Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php




[PHP-DOC] cvs: phpdoc /en/reference/http/functions headers-sent.xml

2002-12-01 Thread Gabor Hojtsy
gobaSun Dec  1 05:52:42 2002 EDT

  Modified files:  
/phpdoc/en/reference/http/functions headers-sent.xml 
  Log:
  This page incorrectly stated that headers_sent() will
  return true if the headers were not sent, which is the
  opposite of how this function behaves. Correcting this.
  
  Also made the example work standalone, and reworded the
  explanation of the new file and line parameters, so it
  now says that the value is put into those variables and
  not returned...
  
  
Index: phpdoc/en/reference/http/functions/headers-sent.xml
diff -u phpdoc/en/reference/http/functions/headers-sent.xml:1.10 
phpdoc/en/reference/http/functions/headers-sent.xml:1.11
--- phpdoc/en/reference/http/functions/headers-sent.xml:1.10Thu Nov  7 16:02:39 
2002
+++ phpdoc/en/reference/http/functions/headers-sent.xml Sun Dec  1 05:52:42 2002
@@ -1,5 +1,5 @@
 ?xml version=1.0 encoding=iso-8859-1?
-!-- $Revision: 1.10 $ --
+!-- $Revision: 1.11 $ --
 !-- splitted from ./en/functions/http.xml, last change in rev 1.7 --
   refentry id=function.headers-sent
refnamediv
@@ -14,16 +14,17 @@
   methodparam 
choice=opttypeint/typeparameteramp;line/parameter/methodparam
  /methodsynopsis
 simpara
- functionheaders_sent/function will return true; if no HTTP headers
- have already been sent or false; otherwise.  If the optional
+ functionheaders_sent/function will return false; if no HTTP headers
+ have already been sent or true; otherwise. If the optional
  parameterfile/parameter and parameterline/parameter parameters
- are set, functionheaders_sent/function will return the php source
- file and line number where output started in the parameterfile/parameter.
+ are set, functionheaders_sent/function will put the php source
+ file name and line number where output started in the parameterfile/parameter
+ and parameterline/parameter variables.
 /simpara
 simpara
  You can't add any more header lines using the functionheader/function 
  function once the header block has already been sent. Using this function 
- you can at least prevent getting the Duplicate headers ... error messages.
+ you can at least prevent getting HTTP header related error messages.
  Another option is to use link linkend=ref.outcontrolOutput Buffering/link.
 /simpara
 note
@@ -56,8 +57,9 @@
 // You would most likely trigger an error here.
 } else {
 
-print Headers already sent in $filename on line $linenum\n;
-print Cannot redirect, for now please click this $link instead\n;
+print Headers already sent in $filename on line $linenum\n .
+  Cannot redirect, for now please click this a  .
+  href=\http://www.example.com\;link/a instead\n;
 exit;
 }
 



-- 
PHP Documentation Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php




Re: [PHP-DOC] cvs: phpdoc /en/reference/http/functions headers-sent.xml

2002-11-07 Thread Gabor Hojtsy
   Rewrote the docs; it is now mixed; closed bug #20292.

You are probably wrong in modifying the return type to be mixed.
The function returns true/false in every case as I can see, and
if the two parameters were given it returns the values *in*
those variables, and still returns true/false. If it returned true,
than the content of those variables can be examined, otherwise
they are probably useless. So the return type is boolean...

Goba



-- 
PHP Documentation Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php




Re: [PHP-DOC] cvs: phpdoc /en/reference/http/functions headers-sent.xml

2002-11-07 Thread Philip Olson

On Thu, 7 Nov 2002, Gabor Hojtsy wrote:
Rewrote the docs; it is now mixed; closed bug #20292.
 
 You are probably wrong in modifying the return type to be mixed.
 The function returns true/false in every case as I can see, and
 if the two parameters were given it returns the values *in*
 those variables, and still returns true/false. If it returned true,
 than the content of those variables can be examined, otherwise
 they are probably useless. So the return type is boolean...

Oops, you're very right.  That part will be changed back.  It
took me awhile to figure out how the new parameters worked :)

Regards,
Philip


-- 
PHP Documentation Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php




[PHP-DOC] cvs: phpdoc /en/reference/http/functions headers-sent.xml

2002-11-07 Thread Philip Olson
philip  Thu Nov  7 16:02:40 2002 EDT

  Modified files:  
/phpdoc/en/reference/http/functions headers-sent.xml 
  Log:
  Oops, still boolean.
  
  
Index: phpdoc/en/reference/http/functions/headers-sent.xml
diff -u phpdoc/en/reference/http/functions/headers-sent.xml:1.9 
phpdoc/en/reference/http/functions/headers-sent.xml:1.10
--- phpdoc/en/reference/http/functions/headers-sent.xml:1.9 Wed Nov  6 20:29:44 
2002
+++ phpdoc/en/reference/http/functions/headers-sent.xml Thu Nov  7 16:02:39 2002
 -1,5 +1,5 
 ?xml version=1.0 encoding=iso-8859-1?
-!-- $Revision: 1.9 $ --
+!-- $Revision: 1.10 $ --
 !-- splitted from ./en/functions/http.xml, last change in rev 1.7 --
   refentry id=function.headers-sent
refnamediv
 -9,7 +9,7 
refsect1
 titleDescription/title
  methodsynopsis
-  typemixed/typemethodnameheaders_sent/methodname  
+  typeboolean/typemethodnameheaders_sent/methodname  
   methodparam 
choice=opttypestring/typeparameteramp;file/parameter/methodparam
   methodparam 
choice=opttypeint/typeparameteramp;line/parameter/methodparam
  /methodsynopsis



-- 
PHP Documentation Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php




[PHP-DOC] cvs: phpdoc /en/reference/http/functions headers-sent.xml

2002-11-06 Thread Chen bole
avenger Wed Nov  6 11:19:55 2002 EDT

  Modified files:  
/phpdoc/en/reference/http/functions headers-sent.xml 
  Log:
  finished
  
  
Index: phpdoc/en/reference/http/functions/headers-sent.xml
diff -u phpdoc/en/reference/http/functions/headers-sent.xml:1.4 
phpdoc/en/reference/http/functions/headers-sent.xml:1.5
--- phpdoc/en/reference/http/functions/headers-sent.xml:1.4 Tue Sep 17 08:44:11 
2002
+++ phpdoc/en/reference/http/functions/headers-sent.xml Wed Nov  6 11:19:55 2002
 -1,39 +1,35 
 ?xml version=1.0 encoding=iso-8859-1?
-!-- $Revision: 1.4 $ --
+!-- $Revision: 1.5 $ --
 !-- splitted from ./en/functions/http.xml, last change in rev 1.7 --
   refentry id=function.headers-sent
refnamediv
 refnameheaders_sent/refname
-refpurposeReturns true; if headers have been sent/refpurpose
+refpurpose²âÊÔÍ·²¿ÐÅÏ¢ÊÇ·ñÒѾ­±»·¢ËÍ£¬Èç¹ûÊÇ£¬·µ»Ø true;/refpurpose
/refnamediv
refsect1
-titleDescription/title
+titleÃèÊö/title
  methodsynopsis
   typebool/typemethodnameheaders_sent/methodname  
   methodparamtypestring/typeparameteramp;file/parameter/methodparam
   methodparam 
choice=opttypeint/typeparameteramp;line/parameter/methodparam
  /methodsynopsis
 para
- This function returns true; if the HTTP headers have already been
- sent, false; otherwise. You can't add any more header lines using
-the functionheader/function function once the header block has
-already been sent. Using this function you can at least prevent
-getting the Duplicate headers ... error messages.
+ Õâ¸öº¯Êý²âÊԽű¾ÖÐÍ·²¿ÐÅÏ¢ÊÇ·ñÒѾ­·¢ËÍ£¬Èç¹ûÊÇÔò·µ»Ø true; ·ñÔò·µ»Ø 
+false;¡£Ò»µ©Í·²¿ÐÅÏ¢ÒѾ­±»·¢ËÍ£¬Ä㽫²»ÄÜÔÙʹÓà functionheader/function
+ º¯ÊýÀ´·¢ËÍÆäËüµÄÍ·²¿ÐÅÏ¢¡£Ê¹Óô˺¯Êý¿ÉÒÔʹÄã×î´óÏ޶ȵıÜÃâÀàËÆ Duplicate 
+headers ... µÄ´íÎóÐÅÏ¢¡£
 /para
 para
- The function will return the php source file and line number where
- output started in the optional parameterfile/parameter and
- parameterline/parameter parameters if these are given.
+ Èç¹û¿ÉÏȲÎÊý parameterfile/parameter
+ ¼° parameterline/parameter
+ ±»Ö¸¶¨£¬Ôòº¯Êý»á·µ»ØÖ¸¶¨ÎļþÖ¸¶¨ÐÐÊýÆðÍ·²¿ÐÅÏ¢µÄ·¢ËÍÇé¿ö¡£
 /para
 note
  simpara
-  parameterfile/parameter and parameterline/parameter where
-  added for PHP 4.3.0.
+  parameterfile/parameter and parameterline/parameter
+  ²ÎÊýÔÚ PHP 4.3.0 °æ±¾Öб»¼ÓÈë¡£
  /simpara
 /note
 para
- See also functionheader/function for a more detailed discussion
-of the matters involved.
+ ¸ü¶àϸ½ÚµÄÌÖÂ۲μû functionheader/function¡£
 /para
/refsect1
   /refentry



-- 
PHP Documentation Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php




[PHP-DOC] cvs: phpdoc /en/reference/http/functions headers-sent.xml

2002-11-06 Thread Philip Olson
philip  Wed Nov  6 16:47:17 2002 EDT

  Modified files:  
/phpdoc/en/reference/http/functions headers-sent.xml 
  Log:
  WS.  Please use spaces, not tabs.
  
  
Index: phpdoc/en/reference/http/functions/headers-sent.xml
diff -u phpdoc/en/reference/http/functions/headers-sent.xml:1.6 
phpdoc/en/reference/http/functions/headers-sent.xml:1.7
--- phpdoc/en/reference/http/functions/headers-sent.xml:1.6 Wed Nov  6 13:34:39 
2002
+++ phpdoc/en/reference/http/functions/headers-sent.xml Wed Nov  6 16:47:17 2002
 -1,5 +1,5 
 ?xml version=1.0 encoding=iso-8859-1?
-!-- $Revision: 1.6 $ --
+!-- $Revision: 1.7 $ --
 !-- splitted from ./en/functions/http.xml, last change in rev 1.7 --
   refentry id=function.headers-sent
refnamediv
 -16,9 +16,9 
 para
  This function returns true; if the HTTP headers have already been
  sent, false; otherwise. You can't add any more header lines using
-the functionheader/function function once the header block has
-already been sent. Using this function you can at least prevent
-getting the Duplicate headers ... error messages.
+ the functionheader/function function once the header block has
+ already been sent. Using this function you can at least prevent
+ getting the Duplicate headers ... error messages.
 /para
 para
  The function will return the php source file and line number where
 -33,7 +33,7 
 /note
 para
  See also functionheader/function for a more detailed discussion
-of the matters involved.
+ of the matters involved.
 /para
/refsect1
   /refentry



-- 
PHP Documentation Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php




[PHP-DOC] cvs: phpdoc /en/reference/http/functions headers-sent.xml

2002-11-06 Thread Philip Olson
philip  Wed Nov  6 17:10:40 2002 EDT

  Modified files:  
/phpdoc/en/reference/http/functions headers-sent.xml 
  Log:
  Rewrote the docs; it is now mixed; closed bug #20292.
  
  
Index: phpdoc/en/reference/http/functions/headers-sent.xml
diff -u phpdoc/en/reference/http/functions/headers-sent.xml:1.7 
phpdoc/en/reference/http/functions/headers-sent.xml:1.8
--- phpdoc/en/reference/http/functions/headers-sent.xml:1.7 Wed Nov  6 16:47:17 
2002
+++ phpdoc/en/reference/http/functions/headers-sent.xml Wed Nov  6 17:10:40 2002
 -1,39 +1,41 
 ?xml version=1.0 encoding=iso-8859-1?
-!-- $Revision: 1.7 $ --
+!-- $Revision: 1.8 $ --
 !-- splitted from ./en/functions/http.xml, last change in rev 1.7 --
   refentry id=function.headers-sent
refnamediv
 refnameheaders_sent/refname
-refpurposeReturns true; if headers have been sent/refpurpose
+refpurposeChecks if or where headers have been sent/refpurpose
/refnamediv
refsect1
 titleDescription/title
  methodsynopsis
-  typebool/typemethodnameheaders_sent/methodname  
-  methodparamtypestring/typeparameteramp;file/parameter/methodparam
+  typemixed/typemethodnameheaders_sent/methodname  
+  methodparam 
+choice=opttypestring/typeparameteramp;file/parameter/methodparam
   methodparam 
choice=opttypeint/typeparameteramp;line/parameter/methodparam
  /methodsynopsis
-para
- This function returns true; if the HTTP headers have already been
- sent, false; otherwise. You can't add any more header lines using
- the functionheader/function function once the header block has
- already been sent. Using this function you can at least prevent
- getting the Duplicate headers ... error messages.
-/para
-para
- The function will return the php source file and line number where
- output started in the optional parameterfile/parameter and
- parameterline/parameter parameters if these are given.
-/para
+simpara
+ functionheaders_sent/function will return true; if no HTTP headers
+ have already been sent or false; otherwise.  If the optional
+ parameterfile/parameter and parameterline/parameter parameters
+ are set, functionheaders_sent/function will return the php source
+ file and line number where output started in the parameterfile/parameter.
+/simpara
+simpara
+ You can't add any more header lines using the functionheader/function 
+ function once the header block has already been sent. Using this function 
+ you can at least prevent getting the Duplicate headers ... error messages.
+ Another option is to use link linkend=ref.outcontrolOutput Buffering/link.
+/simpara
 note
+ titleNew parameters/title
  simpara
-  parameterfile/parameter and parameterline/parameter where
-  added for PHP 4.3.0.
+  The optional parameterfile/parameter and parameterline/parameter 
+  parameters where added in PHP 4.3.0.
  /simpara
 /note
 para
- See also functionheader/function for a more detailed discussion
- of the matters involved.
+ See also functionob_start/function and functionheader/function for a 
+ more detailed discussion of the matters involved.
 /para
/refsect1
   /refentry



-- 
PHP Documentation Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php




[PHP-DOC] cvs: phpdoc /en/reference/http/functions headers-sent.xml

2002-11-06 Thread Philip Olson
philip  Wed Nov  6 20:29:44 2002 EDT

  Modified files:  
/phpdoc/en/reference/http/functions headers-sent.xml 
  Log:
  Added a couple examples.
  
  
Index: phpdoc/en/reference/http/functions/headers-sent.xml
diff -u phpdoc/en/reference/http/functions/headers-sent.xml:1.8 
phpdoc/en/reference/http/functions/headers-sent.xml:1.9
--- phpdoc/en/reference/http/functions/headers-sent.xml:1.8 Wed Nov  6 17:10:40 
2002
+++ phpdoc/en/reference/http/functions/headers-sent.xml Wed Nov  6 20:29:44 2002
 -1,5 +1,5 
 ?xml version=1.0 encoding=iso-8859-1?
-!-- $Revision: 1.8 $ --
+!-- $Revision: 1.9 $ --
 !-- splitted from ./en/functions/http.xml, last change in rev 1.7 --
   refentry id=function.headers-sent
refnamediv
 -34,8 +34,42 
  /simpara
 /note
 para
- See also functionob_start/function and functionheader/function for a 
- more detailed discussion of the matters involved.
+ example
+  titleExamples using functionheaders_sent/function/title
+  programlisting role=php
+![CDATA[
+?php
+
+// If no headers are sent, send one
+if (!headers_sent()) {
+header ('Location: http://www.example.com/');
+exit;
+}
+  
+// An example using the optional file and line parameters, as of PHP 4.3.0
+// Note that $filename and $linenum are passed in for later use.
+// Do not assign them values beforehand.
+if (!headers_sent($filename, $linenum)) {
+header ('Location: http://www.example.com/');
+exit;
+
+// You would most likely trigger an error here.
+} else {
+
+print Headers already sent in $filename on line $linenum\n;
+print Cannot redirect, for now please click this $link instead\n;
+exit;
+}
+
+?
+]]
+  /programlisting
+ /example
+/para
+para
+ See also functionob_start/function, functiontrigger_error/function, 
+ and functionheader/function for a more detailed discussion of the 
+ matters involved.
 /para
/refsect1
   /refentry



-- 
PHP Documentation Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php




[PHP-DOC] cvs: phpdoc /en/reference/http/functions headers-sent.xml

2002-09-17 Thread Hartmut Holzgraefe

hholzgraTue Sep 17 08:44:12 2002 EDT

  Modified files:  
/phpdoc/en/reference/http/functions headers-sent.xml 
  Log:
  new optional parameters documented
  
  
Index: phpdoc/en/reference/http/functions/headers-sent.xml
diff -u phpdoc/en/reference/http/functions/headers-sent.xml:1.3 
phpdoc/en/reference/http/functions/headers-sent.xml:1.4
--- phpdoc/en/reference/http/functions/headers-sent.xml:1.3 Tue Aug  6 07:54:06 
2002
+++ phpdoc/en/reference/http/functions/headers-sent.xml Tue Sep 17 08:44:11 2002
 -1,5 +1,5 
 ?xml version=1.0 encoding=iso-8859-1?
-!-- $Revision: 1.3 $ --
+!-- $Revision: 1.4 $ --
 !-- splitted from ./en/functions/http.xml, last change in rev 1.7 --
   refentry id=function.headers-sent
refnamediv
 -9,8 +9,9 
refsect1
 titleDescription/title
  methodsynopsis
-  typebool/typemethodnameheaders_sent/methodname
-  void/
+  typebool/typemethodnameheaders_sent/methodname  
+  methodparamtypestring/typeparameteramp;file/parameter/methodparam
+  methodparam 
+choice=opttypeint/typeparameteramp;line/parameter/methodparam
  /methodsynopsis
 para
  This function returns true; if the HTTP headers have already been
 -19,6 +20,17 
 already been sent. Using this function you can at least prevent
 getting the Duplicate headers ... error messages.
 /para
+para
+ The function will return the php source file and line number where
+ output started in the optional parameterfile/parameter and
+ parameterline/parameter parameters if these are given.
+/para
+note
+ simpara
+  parameterfile/parameter and parameterline/parameter where
+  added for PHP 4.3.0.
+ /simpara
+/note
 para
  See also functionheader/function for a more detailed discussion
 of the matters involved.



-- 
PHP Documentation Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php