[PHP-DOC] #20743 [NEW]: mysql_error in mysql code examples

2002-12-01 Thread renota
From: [EMAIL PROTECTED]
Operating system: Linux
PHP version:  4.2.3
PHP Bug Type: Documentation problem
Bug description:  mysql_error in mysql code examples

Hello, 
I answer questions on a php help bbs (www.phpworld.com).  
One of the most common problems reported is that the users 
don't know why their database calls are not working.  
Usually they have copied the code right out of the 
examples (e.g. mysql_connect()), which do not utilize 
mysql_error().  I was wondering if these examples could be 
changed to use mysql_error() and thus reduce newbie 
confusion. 
Thank you for your time. 
-- 
Edit bug report at http://bugs.php.net/?id=20743edit=1
-- 
Try a CVS snapshot: http://bugs.php.net/fix.php?id=20743r=trysnapshot
Fixed in CVS:   http://bugs.php.net/fix.php?id=20743r=fixedcvs
Fixed in release:   http://bugs.php.net/fix.php?id=20743r=alreadyfixed
Need backtrace: http://bugs.php.net/fix.php?id=20743r=needtrace
Try newer version:  http://bugs.php.net/fix.php?id=20743r=oldversion
Not developer issue:http://bugs.php.net/fix.php?id=20743r=support
Expected behavior:  http://bugs.php.net/fix.php?id=20743r=notwrong
Not enough info:http://bugs.php.net/fix.php?id=20743r=notenoughinfo
Submitted twice:http://bugs.php.net/fix.php?id=20743r=submittedtwice
register_globals:   http://bugs.php.net/fix.php?id=20743r=globals
PHP 3 support discontinued: http://bugs.php.net/fix.php?id=20743r=php3
Daylight Savings:   http://bugs.php.net/fix.php?id=20743r=dst
IIS Stability:  http://bugs.php.net/fix.php?id=20743r=isapi


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




[PHP-DOC] cvs: phpdoc /en/reference/strings/functions echo.xml

2002-12-01 Thread Gabor Hojtsy
gobaSun Dec  1 05:29:14 2002 EDT

  Modified files:  
/phpdoc/en/reference/strings/functions  echo.xml 
  Log:
  Deleting note on print()
  
  
Index: phpdoc/en/reference/strings/functions/echo.xml
diff -u phpdoc/en/reference/strings/functions/echo.xml:1.4 
phpdoc/en/reference/strings/functions/echo.xml:1.5
--- phpdoc/en/reference/strings/functions/echo.xml:1.4  Sat Jul 27 00:07:06 2002
+++ phpdoc/en/reference/strings/functions/echo.xml  Sun Dec  1 05:29:14 2002
@@ -1,5 +1,5 @@
 ?xml version=1.0 encoding=iso-8859-1?
-!-- $Revision: 1.4 $ --
+!-- $Revision: 1.5 $ --
 !-- splitted from ./en/functions/strings.xml, last change in rev 1.2 --
   refentry id=function.echo
refnamediv
@@ -23,7 +23,7 @@
  to echo, you must not enclose the parameters within parentheses.
  It is not possible to use functionecho/function in a 
  link linkend=functions.variable-functionsvariable function/link
- context, but you can use functionprint/function instead.
+ context.
  example
   titlefunctionecho/function examples/title
   programlisting role=php



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




Re: [PHP-DOC] Re: Bug #16739

2002-12-01 Thread Gabor Hojtsy
 Of course edit - echo...sorry..

OK, I have updated the echo page now [removed the reference to print].

Goba



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




[PHP-DOC] cvs: phpdoc /en/language functions.xml

2002-12-01 Thread Gabor Hojtsy
gobaSun Dec  1 05:44:46 2002 EDT

  Modified files:  
/phpdoc/en/language functions.xml 
  Log:
  Adding explanation about using wrapper functions
  instead of the language constructs. Also reworded
  the language construct's list a bit, so it indicates
  that there are more constructs not working. Added a
  new object example on how to use variable funcitons
  inside objects.
  
  
Index: phpdoc/en/language/functions.xml
diff -u phpdoc/en/language/functions.xml:1.29 phpdoc/en/language/functions.xml:1.30
--- phpdoc/en/language/functions.xml:1.29   Thu Nov 28 15:43:00 2002
+++ phpdoc/en/language/functions.xmlSun Dec  1 05:44:46 2002
@@ -1,5 +1,5 @@
 ?xml version=1.0 encoding=iso-8859-1?
-!-- $Revision: 1.29 $ --
+!-- $Revision: 1.30 $ --
  chapter id=functions
   titleFunctions/title
 
@@ -403,9 +403,12 @@
/para
para
 Variable functions won't work with language constructs such 
-as functionecho/function, functionunset/function,
-functionisset/function, functionempty/function, 
-functioninclude/function and functionprint/function.
+as functionecho/function, functionprint/function,
+functionunset/function, functionisset/function,
+functionempty/function, functioninclude/function,
+functionrequire/function and the like. You need to use
+your own wrapper function to use any of these constructs
+as variable functions.
/para
para
 example
@@ -423,22 +426,62 @@
 echo In bar(); argument was '$arg'.br\n;
 }
 
+// This is a wrapper function around echo
+function echoit($string)
+{
+echo $string;
+}
+
 $func = 'foo';
-$func();
+$func();// This calls foo()
+
 $func = 'bar';
-$func('test');
+$func('test');  // This calls bar()
+
+$func = 'echoit';
+$func('test');  // This calls echoit()
+?
+]]
+ /programlisting
+/example
+   /para
+   para
+You can also call an objects method by using the variable functions
+feature.
+example
+ titleVariable method example/title
+ programlisting role=php
+![CDATA[
+?php
+class Foo
+{
+function Var()
+{
+$name = 'Bar';
+$this-$name(); // This calls the Bar() method
+}
+
+function Bar()
+{
+echo This is Bar;
+}
+}
+
+$foo = new Foo();
+$funcname = Var;
+$foo-$varname();   // This calls $foo-Var()
+
 ?
 ]]
  /programlisting
 /example
/para
para
-See also link linkend=language.variables.variable
+See also functioncall_user_func/function,
+link linkend=language.variables.variable
 variable variables/link and functionfunction_exists/function.
/para
-
   /sect1
-
  /chapter
  
 !-- Keep this comment at the end of the file



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




[PHP-DOC] cvs: phpdoc /en/language functions.xml

2002-12-01 Thread Gabor Hojtsy
gobaSun Dec  1 05:50:48 2002 EDT

  Modified files:  
/phpdoc/en/language functions.xml 
  Log:
  Ups, fixing two typos
  
  
Index: phpdoc/en/language/functions.xml
diff -u phpdoc/en/language/functions.xml:1.30 phpdoc/en/language/functions.xml:1.31
--- phpdoc/en/language/functions.xml:1.30   Sun Dec  1 05:44:46 2002
+++ phpdoc/en/language/functions.xmlSun Dec  1 05:50:48 2002
@@ -1,5 +1,5 @@
 ?xml version=1.0 encoding=iso-8859-1?
-!-- $Revision: 1.30 $ --
+!-- $Revision: 1.31 $ --
  chapter id=functions
   titleFunctions/title
 
@@ -407,7 +407,7 @@
 functionunset/function, functionisset/function,
 functionempty/function, functioninclude/function,
 functionrequire/function and the like. You need to use
-your own wrapper function to use any of these constructs
+your own wrapper function to utilize any of these constructs
 as variable functions.
/para
para
@@ -446,7 +446,7 @@
 /example
/para
para
-You can also call an objects method by using the variable functions
+You can also call an object's method by using the variable functions
 feature.
 example
  titleVariable method example/title



-- 
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




[PHP-DOC] #20726 [Opn]: 'foo'==0 cast on comparison

2002-12-01 Thread derick
 ID:  20726
 Updated by:  [EMAIL PROTECTED]
 Reported By: [EMAIL PROTECTED]
 Status:  Open
-Bug Type:Feature/Change Request
+Bug Type:Documentation problem
 PHP Version: 4.2.3
 New Comment:

We need to keep it in the Documentation category, otherwise the doc-ppl
won't see it.

Derick


Previous Comments:


[2002-12-01 07:12:02] [EMAIL PROTECTED]

refiling into (documentation) feature request for the following
reason:

the problem i pointed out was a missconception of mine, not a wrong
info in the docs, thus not a 'documentation problem'

given that, i should have submitted information about it as a feature
request for new information in the manual, instead of blaming the
manual for my missconception. i wish to appologize for that (btw it is
one of the best reference manuals i've seen).

last, since no other php newbie has given me authority for speaking on
his behalf, i must refrase that statement of mine: the issue messed
with my brain. it made it stop working for a while...



[2002-11-29 08:44:37] [EMAIL PROTECTED]

IMO it can be documented better indeed, for example at this page:
http://www.php.net/manual/en/language.operators.comparison.php

Derick



[2002-11-29 08:39:13] [EMAIL PROTECTED]

yesterday i submitted an 'foo'==0 bug (id=20708) in the Scripting
Engine problem Category, well i understand that was stupid and my bug
went bogus just as ahundret other submitted 'foo'==0 bugs i later found
in the database.

but i think it is an issue.

the manual states:

Example: $a == $b 
Name: Equal 
Result: TRUE if $a is equal to $b
 
this is not specific enough for a language where 'foo'==0 evaluates
TRUE.

when i write 'foo'==0 i do *not* want to know if they are same type

i want to know one of those:
'foo'==(string)0 *or* (int)'foo'==0

obviously, only one of those can happen. if you want the other thing to
happen, you must cast explicitly. the manual doesn't state which one
happens implicitly.

automatic type casting is great for coding, but one can't just let it
happen, one must know exactly what it does. 

i hope you understand that a nonempty string to be the same as a zero
integer messes with the brain of any php newbie used to fixed type
languages if you don't explain to him why.

the manual shouldn´t just state that 'foo' equals to 0, because for
this to happen php seems to use a cast precedence for comparison
operations - whatever it is, the manual should explain it.

PS:
if you bogus me again i wont insist.





-- 
Edit this bug report at http://bugs.php.net/?id=20726edit=1


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




[PHP-DOC] cvs: phpdoc /en/reference/objaggregation reference.xml

2002-12-01 Thread Friedhelm Betz
betzSun Dec  1 09:20:11 2002 EDT

  Modified files:  
/phpdoc/en/reference/objaggregation reference.xml 
  Log:
  typo fix
  
  
Index: phpdoc/en/reference/objaggregation/reference.xml
diff -u phpdoc/en/reference/objaggregation/reference.xml:1.4 
phpdoc/en/reference/objaggregation/reference.xml:1.5
--- phpdoc/en/reference/objaggregation/reference.xml:1.4Sun Aug  4 00:14:48 
2002
+++ phpdoc/en/reference/objaggregation/reference.xmlSun Dec  1 09:20:11 2002
@@ -1,5 +1,5 @@
 ?xml version=1.0 encoding=iso-8859-1?
-!-- $Revision: 1.4 $ --
+!-- $Revision: 1.5 $ --
  reference id=ref.objaggregation
   titleObject Aggregation/Composition Functions/title
   titleabbrevObject Aggregation/titleabbrev
@@ -60,7 +60,7 @@
/programlisting
   /example
   We can also associate instances at runtime by passing a reference in a
-  constructor (or any othe method), which allow us to dynamically change
+  constructor (or any other method), which allow us to dynamically change
   the association relationship between objects. We will modify the example 
   above to illustrate this point:
   example



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




[PHP-DOC] cvs: phpdoc /en/reference/objaggregation reference.xml

2002-12-01 Thread Friedhelm Betz
betzSun Dec  1 09:29:25 2002 EDT

  Modified files:  
/phpdoc/en/reference/objaggregation reference.xml 
  Log:
  WS fix,  no tabs
  
  
Index: phpdoc/en/reference/objaggregation/reference.xml
diff -u phpdoc/en/reference/objaggregation/reference.xml:1.5 
phpdoc/en/reference/objaggregation/reference.xml:1.6
--- phpdoc/en/reference/objaggregation/reference.xml:1.5Sun Dec  1 09:20:11 
2002
+++ phpdoc/en/reference/objaggregation/reference.xmlSun Dec  1 09:29:25 2002
@@ -1,5 +1,5 @@
 ?xml version=1.0 encoding=iso-8859-1?
-!-- $Revision: 1.5 $ --
+!-- $Revision: 1.6 $ --
  reference id=ref.objaggregation
   titleObject Aggregation/Composition Functions/title
   titleabbrevObject Aggregation/titleabbrev
@@ -302,16 +302,16 @@
 $fs object
 Class: filestorage
 property: data (array)
-   0 = 3.1415926535898
-   1 = kludge != cruft
+0 = 3.1415926535898
+1 = kludge != cruft
 method: filestorage
 method: write
 
 $ws object
 Class: wddxstorage
 property: data (array)
-   0 = 3.1415926535898
-   1 = kludge != cruft
+0 = 3.1415926535898
+1 = kludge != cruft
 property: version = 1.0
 property: _id = ID::9bb2b640764d4370eb04808af8b076a5
 method: wddxstorage
@@ -342,8 +342,8 @@
 $fs object
 Class: filestorage
 property: data (array)
-   0 = 3.1415926535898
-   1 = kludge != cruft
+0 = 3.1415926535898
+1 = kludge != cruft
 property: version = 1.0
 method: filestorage
 method: write
@@ -366,8 +366,8 @@
 $fs object
 Class: filestorage
 property: data (array)
-   0 = 3.1415926535898
-   1 = kludge != cruft
+0 = 3.1415926535898
+1 = kludge != cruft
 property: version = 1.0
 property: dbtype = mysql
 method: filestorage
@@ -392,8 +392,8 @@
 $fs object
 Class: filestorage
 property: data (array)
-   0 = 3.1415926535898
-   1 = kludge != cruft
+0 = 3.1415926535898
+1 = kludge != cruft
 property: dbtype = mysql
 method: filestorage
 method: write



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




[PHP-DOC] cvs: phpdoc /en/reference rsusi.txt /en/reference/ncurses configure.xml reference.xml /en/reference/nis configure.xml reference.xml /en/reference/oci8 configure.xml reference.xml /en/reference/openssl configure.xml reference.xml /en/reference/oracle configure.xml reference.xml /en/reference/overload configure.xml reference.xml /en/reference/ovrimos configure.xml reference.xml /en/reference/pcntl configure.xml reference.xml /en/reference/pcre configure.xml reference.xml /en/reference/pdf configure.xml reference.xml /en/reference/pfpro configure.xml reference.xml /en/reference/pgsql configure.xml reference.xml /en/reference/posix configure.xml reference.xml /en/reference/printer configure.xml reference.xml /en/reference/pspell configure.xml reference.xml /en/reference/qtdom configure.xml reference.xml

2002-12-01 Thread Friedhelm Betz
betzSun Dec  1 12:10:18 2002 EDT

  Added files: 
/phpdoc/en/reference/ncursesconfigure.xml 
/phpdoc/en/reference/nisconfigure.xml 
/phpdoc/en/reference/oci8   configure.xml 
/phpdoc/en/reference/opensslconfigure.xml 
/phpdoc/en/reference/oracle configure.xml 
/phpdoc/en/reference/overload   configure.xml 
/phpdoc/en/reference/ovrimosconfigure.xml 
/phpdoc/en/reference/pcntl  configure.xml 
/phpdoc/en/reference/pcre   configure.xml 
/phpdoc/en/reference/pdfconfigure.xml 
/phpdoc/en/reference/pfpro  configure.xml 
/phpdoc/en/reference/pgsql  configure.xml 
/phpdoc/en/reference/posix  configure.xml 
/phpdoc/en/reference/printerconfigure.xml 
/phpdoc/en/reference/pspell configure.xml 
/phpdoc/en/reference/qtdom  configure.xml 

  Modified files:  
/phpdoc/en/referencersusi.txt 
/phpdoc/en/reference/ncursesreference.xml 
/phpdoc/en/reference/nisreference.xml 
/phpdoc/en/reference/oci8   reference.xml 
/phpdoc/en/reference/opensslreference.xml 
/phpdoc/en/reference/oracle reference.xml 
/phpdoc/en/reference/overload   reference.xml 
/phpdoc/en/reference/ovrimosreference.xml 
/phpdoc/en/reference/pcntl  reference.xml 
/phpdoc/en/reference/pcre   reference.xml 
/phpdoc/en/reference/pdfreference.xml 
/phpdoc/en/reference/pfpro  reference.xml 
/phpdoc/en/reference/pgsql  reference.xml 
/phpdoc/en/reference/posix  reference.xml 
/phpdoc/en/reference/printerreference.xml 
/phpdoc/en/reference/pspell reference.xml 
/phpdoc/en/reference/qtdom  reference.xml 
  Log:
  rsusi.txt: reflect changes
  configure.xml files added, linking from refernce.xml files
  
  
Index: phpdoc/en/reference/rsusi.txt
diff -u phpdoc/en/reference/rsusi.txt:1.40 phpdoc/en/reference/rsusi.txt:1.41
--- phpdoc/en/reference/rsusi.txt:1.40  Sat Nov 30 10:33:18 2002
+++ phpdoc/en/reference/rsusi.txt   Sun Dec  1 12:10:12 2002
@@ -90,26 +90,26 @@
 mssql~ ***
 muscat ~ 
 mysqlyes   yes
-ncurses  yes
-network~ yes
-nis
+ncurses  yes   yes
+network~ yes   none
+nis/yp   none  yes
 notes  ~
-objaggregation 
-oci8   
-openssl++
-oracle ~
-outcontrol   yes
-overload   
-ovrimos
-pcntl  
-pcre   
-pdf++
-pfproyes
-pgsql  ++yes
-posix  ~
-printer~ yes
-pspell 
-qtdom  ~
+objaggregation   none  none
+oci8 none  yes
+openssl++none  yes
+oracle ~ none  yes
+outcontrol   yes   none
+overload none  yes
+ovrimos  none  yes
+pcntlnone  yes
+pcre none  yes
+pdf++none  ***
+pfproyes   yes
+pgsql  ++yes   yes
+posix  ~ none  yes
+printer~ yes   yes
+pspell   none  yes
+qtdom  ~ none  yes
 readline   
 recode 
 regex  
Index: phpdoc/en/reference/ncurses/reference.xml
diff -u phpdoc/en/reference/ncurses/reference.xml:1.4 
phpdoc/en/reference/ncurses/reference.xml:1.5
--- phpdoc/en/reference/ncurses/reference.xml:1.4   Sat Sep 14 17:23:13 2002
+++ phpdoc/en/reference/ncurses/reference.xml   Sun Dec  1 12:10:13 2002
@@ -1,5 +1,5 @@
 ?xml version=1.0 encoding=iso-8859-1?
-!-- $Revision: 1.4 $ --
+!-- $Revision: 1.5 $ --
  reference id=ref.ncurses
   titleNcurses terminal screen control functions/title
   titleabbrevncurses functions/titleabbrev
@@ -11,6 +11,9 @@
  ncurses (new curses) is a free software emulation of curses in
  System V Rel 4.0 (and above). It uses terminfo format, supports pads,
  colors, multiple highlights, form characters and function key mapping.
+ Because of the interactive nature of this library, it will be of little
+ use for writing Web applications, but may be useful when writing scripts meant
+ link linkend=features.commandlineusing PHP from the command line/link.
 /para
 warn.experimental;
 para
@@ -40,15 +43,8 @@
  or from an other GNU-Mirror.
 /para
/section
-   
-   section id=ncurses.installation
-reftitle.install;
-para
- To get these functions to work, you have to compile the CGI
- version of PHP with option
- role=configure--with-ncurses/option.
-/para
-   /section
+
+   reference.ncurses.configure;
 
reference.ncurses.ini;
 
Index: phpdoc/en/reference/nis/reference.xml
diff -u 

[PHP-DOC] cvs: phpdoc /en/reference/zlib/functions gzinflate.xml gzuncompress.xml

2002-12-01 Thread Stefan Roehrich
sr  Sun Dec  1 13:57:51 2002 EDT

  Modified files:  
/phpdoc/en/reference/zlib/functions gzinflate.xml gzuncompress.xml 
  Log:
  Adapt gzinflate/gzuncompress length to current maximal tried length.
  
  
Index: phpdoc/en/reference/zlib/functions/gzinflate.xml
diff -u phpdoc/en/reference/zlib/functions/gzinflate.xml:1.2 
phpdoc/en/reference/zlib/functions/gzinflate.xml:1.3
--- phpdoc/en/reference/zlib/functions/gzinflate.xml:1.2Wed Apr 17 02:45:33 
2002
+++ phpdoc/en/reference/zlib/functions/gzinflate.xmlSun Dec  1 13:57:51 2002
@@ -1,5 +1,5 @@
 ?xml version=1.0 encoding=iso-8859-1?
-!-- $Revision: 1.2 $ --
+!-- $Revision: 1.3 $ --
 !-- splitted from ./en/functions/zlib.xml, last change in rev 1.11 --
   refentry id=function.gzinflate
refnamediv
@@ -17,7 +17,7 @@
  This function takes parameterdata/parameter compressed by
  functiongzdeflate/function and returns the original
  uncompressed data or false; on error.  The function will return an
- error if the uncompressed data is more than 256 times the length
+ error if the uncompressed data is more than 32768 times the length
  of the compressed input parameterdata/parameter or more than
  the optional parameter parameterlength/parameter.
 /para
Index: phpdoc/en/reference/zlib/functions/gzuncompress.xml
diff -u phpdoc/en/reference/zlib/functions/gzuncompress.xml:1.2 
phpdoc/en/reference/zlib/functions/gzuncompress.xml:1.3
--- phpdoc/en/reference/zlib/functions/gzuncompress.xml:1.2 Wed Apr 17 02:45:34 
2002
+++ phpdoc/en/reference/zlib/functions/gzuncompress.xml Sun Dec  1 13:57:51 2002
@@ -1,5 +1,5 @@
 ?xml version=1.0 encoding=iso-8859-1?
-!-- $Revision: 1.2 $ --
+!-- $Revision: 1.3 $ --
 !-- splitted from ./en/functions/zlib.xml, last change in rev 1.11 --
   refentry id=function.gzuncompress
refnamediv
@@ -17,7 +17,7 @@
  This function takes parameterdata/parameter compressed by
  functiongzcompress/function and returns the original
  uncompressed data or false; on error.  The function will return an
- error if the uncompressed data is more than 256 times the length
+ error if the uncompressed data is more than 32768 times the length
  of the compressed input parameterdata/parameter or more than
  the optional parameter parameterlength/parameter.
 /para



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




[PHP-DOC] cvs: phpdoc /en/reference/session reference.xml

2002-12-01 Thread John Coggeshall
johnSun Dec  1 17:06:11 2002 EDT

  Modified files:  
/phpdoc/en/reference/sessionreference.xml 
  Log:
  Added a note to point out that sessions are not kept which have no
  registered variables. 
  
  
Index: phpdoc/en/reference/session/reference.xml
diff -u phpdoc/en/reference/session/reference.xml:1.20 
phpdoc/en/reference/session/reference.xml:1.21
--- phpdoc/en/reference/session/reference.xml:1.20  Thu Oct 10 08:00:02 2002
+++ phpdoc/en/reference/session/reference.xml   Sun Dec  1 17:06:11 2002
@@ -1,5 +1,5 @@
 ?xml version=1.0 encoding=iso-8859-1?
-!-- $Revision: 1.20 $ --
+!-- $Revision: 1.21 $ --
  reference id=ref.session
   titleSession handling functions/title
   titleabbrevSessions/titleabbrev
@@ -42,6 +42,15 @@
 note
  para
   Session handling was added in PHP 4.0.
+ /para
+/note
+note
+ para
+ Please note when working with sessions that a record of a session
+ is not created until a variable has been registered using the
+ functionsession_register/function function. This holds true 
+ regardless of if a session has been started using the 
+functionsession_start/function
+ function. 
  /para
 /note
/section



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




Re: [PHP-DOC] cvs: phpdoc /en/reference/session reference.xml

2002-12-01 Thread Gabor Hojtsy
 +note
 + para
 + Please note when working with sessions that a record of a session
 + is not created until a variable has been registered using the
 + functionsession_register/function function. This holds true
 + regardless of if a session has been started using the
functionsession_start/function
 + function.
   /para
  /note

This note is incorrect, as you can also register a session variable
by adding a new key into $_SESSION. So this note should be extended
(or it would be better to have a common place where variable
registration methods are described).

Goba



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




[PHP-DOC] cvs: phpdoc /en/reference/session reference.xml

2002-12-01 Thread John Coggeshall
johnSun Dec  1 17:25:04 2002 EDT

  Modified files:  
/phpdoc/en/reference/sessionreference.xml 
  Log:
  Added a reference to $_SESSION as also being a valid method (instead of 
  just saying session_register())
  
  
Index: phpdoc/en/reference/session/reference.xml
diff -u phpdoc/en/reference/session/reference.xml:1.21 
phpdoc/en/reference/session/reference.xml:1.22
--- phpdoc/en/reference/session/reference.xml:1.21  Sun Dec  1 17:06:11 2002
+++ phpdoc/en/reference/session/reference.xml   Sun Dec  1 17:25:04 2002
@@ -1,5 +1,5 @@
 ?xml version=1.0 encoding=iso-8859-1?
-!-- $Revision: 1.21 $ --
+!-- $Revision: 1.22 $ --
  reference id=ref.session
   titleSession handling functions/title
   titleabbrevSessions/titleabbrev
@@ -48,9 +48,10 @@
  para
  Please note when working with sessions that a record of a session
  is not created until a variable has been registered using the
- functionsession_register/function function. This holds true 
- regardless of if a session has been started using the 
functionsession_start/function
- function. 
+ functionsession_register/function function or by adding a new 
+ key to the varname$_SESSION/varname superglobal array. This 
+ holds true regardless of if a session has been started using the 
+ functionsession_start/function function. 
  /para
 /note
/section



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




[PHP-DOC] #16397 [Fbk-NoF]: domxml_unlink_node()

2002-12-01 Thread sniper
 ID:   16397
 Updated by:   [EMAIL PROTECTED]
 Reported By:  [EMAIL PROTECTED]
-Status:   Feedback
+Status:   No Feedback
 Bug Type: Documentation problem
 Operating System: w2k
 PHP Version:  4.1.2
 New Comment:

No feedback was provided. The bug is being suspended because
we assume that you are no longer experiencing the problem.
If this is not the case and you are able to provide the
information that was requested earlier, please do so and
change the status of the bug back to Open. Thank you.




Previous Comments:


[2002-11-18 17:41:15] [EMAIL PROTECTED]

Please try PHP 4.3.0 as this extension is still experimental and many
major changes have happened to it recently.



[2002-11-01 13:50:09] [EMAIL PROTECTED]

I'm using a PHP 4.1.2 version on SunOS. I have tried to delete a DOM
Element object by using:

$nodetodelete-unlink();

Actually, it works but it return a The page cannot be display page.
What should I do? Thanhs a lot,

Harry



[2002-04-05 13:24:53] [EMAIL PROTECTED]

domxml_unlink_node should not be used:

Usage for 4.2.0:
domxml_node_unlink_node($nodetodelete);
or
$nodetodelete-unlink();

For future versions:
domxml_node_unlink_node($nodetodelete);
or
$nodetodelete-unlink_node();





[2002-04-02 12:59:30] [EMAIL PROTECTED]

$node - is DOM Element object

domxml_unlink_node($node) 
reports error: expects exactly 0 parameters, 1 given

but
$node-domxml_unlink_node()  
reports error as well: Call to undefined function: 
domxml_unlink_node()

8-OOO
8-\\\




-- 
Edit this bug report at http://bugs.php.net/?id=16397edit=1


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




[PHP-DOC] #19465 [NoF-Csd]: httpd.conf Fix for Apache 2

2002-12-01 Thread philip
 ID:   19465
 Updated by:   [EMAIL PROTECTED]
 Reported By:  [EMAIL PROTECTED]
-Status:   No Feedback
+Status:   Closed
 Bug Type: Documentation problem
 Operating System: Windows 2000
 PHP Version:  4.2.3
 New Comment:

index.txt was modified.


Previous Comments:


[2002-10-17 17:25:15] [EMAIL PROTECTED]

the editor referred the previous commentor to the docs, but there are
no modules noted in the documentation regarding Apache 2 and PHP 4. 
There is no mod_php4.c installed with the windows binary (from the
zip), and it's been impossible to find comments on it.  I suspect that
since the Apache2 build uses shared objects this is why there is a
problem.  Even if this is not fixed right away, when will we hear from
the developers???  Just a we're working on X b/c of Y and it will
be some time before Z would suffice.



[2002-10-08 21:57:05] [EMAIL PROTECTED]

No feedback was provided. The bug is being suspended because
we assume that you are no longer experiencing the problem.
If this is not the case and you are able to provide the
information that was requested earlier, please do so and
change the status of the bug back to Open. Thank you.





[2002-09-18 06:11:07] [EMAIL PROTECTED]

Actually the documentation on installation has more information on the
AddModule directive, and when to use it. Please recheck that that
documentation is ok or not, and provide feedback. Thanks.



[2002-09-18 03:32:46] [EMAIL PROTECTED]

For an Apache installation :
The install.txt suggests to add 3 lines to httpd.conf

   LoadModule php4_module c:/php/sapi/php4apache.dll
   AddModule mod_php4.c
   AddType application/x-httpd-php .php

However   AddModule mod_php4.c
caused errors on my installation Windows2000/Apache2.
Putting this line in comment (or not adding it) worked.
I found this solution in the newsgroups.




-- 
Edit this bug report at http://bugs.php.net/?id=19465edit=1


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




[PHP-DOC] #19453 [NoF-Fbk]: [chm] copy example into clipboard

2002-12-01 Thread philip
 ID:   19453
 Updated by:   [EMAIL PROTECTED]
-Summary:  [chm] bug on function.error-reporting.html
 Reported By:  [EMAIL PROTECTED]
-Status:   No Feedback
+Status:   Feedback
 Bug Type: Documentation problem
 Operating System: windows
 PHP Version:  4.2.3
 Assigned To:  goba
 New Comment:

This looks to be working in the 10th edition, Goba can you verify?


Previous Comments:


[2002-11-16 01:00:05] [EMAIL PROTECTED]

No feedback was provided for this bug for over 2 weeks, so it is
being suspended automatically. If you are able to provide the
information that was originally requested, please do so and change
the status of the bug back to Open.



[2002-10-31 11:47:06] [EMAIL PROTECTED]

Is still still an issue in the 10th edition of the chm documentation
avaliable from http://weblabor.hu/php-doc-chm/ ?



[2002-09-17 09:54:41] [EMAIL PROTECTED]

We are working on a solution for it.



[2002-09-17 08:44:33] [EMAIL PROTECTED]

I have found a bug on page function.error-reporting.html
[chm date: 2002-08-28]...
new manual wont copy .. copy to clipboard is not working




-- 
Edit this bug report at http://bugs.php.net/?id=19453edit=1


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




[PHP-DOC] cvs: phpdoc /en/reference/session reference.xml

2002-12-01 Thread John Coggeshall
johnSun Dec  1 18:32:11 2002 EDT

  Modified files:  
/phpdoc/en/reference/sessionreference.xml 
  Log:
  
  WS FIX
  
  
Index: phpdoc/en/reference/session/reference.xml
diff -u phpdoc/en/reference/session/reference.xml:1.22 
phpdoc/en/reference/session/reference.xml:1.23
--- phpdoc/en/reference/session/reference.xml:1.22  Sun Dec  1 17:25:04 2002
+++ phpdoc/en/reference/session/reference.xml   Sun Dec  1 18:32:11 2002
@@ -1,5 +1,5 @@
 ?xml version=1.0 encoding=iso-8859-1?
-!-- $Revision: 1.22 $ --
+!-- $Revision: 1.23 $ --
  reference id=ref.session
   titleSession handling functions/title
   titleabbrevSessions/titleabbrev
@@ -46,12 +46,12 @@
 /note
 note
  para
- Please note when working with sessions that a record of a session
- is not created until a variable has been registered using the
- functionsession_register/function function or by adding a new 
- key to the varname$_SESSION/varname superglobal array. This 
- holds true regardless of if a session has been started using the 
- functionsession_start/function function. 
+  Please note when working with sessions that a record of a session
+  is not created until a variable has been registered using the
+  functionsession_register/function function or by adding a new 
+  key to the varname$_SESSION/varname superglobal array. This 
+  holds true regardless of if a session has been started using the 
+  functionsession_start/function function. 
  /para
 /note
/section



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




[PHP-DOC] cvs: phpdoc /en/reference/mysql/functions mysql-connect.xml

2002-12-01 Thread Sara Golemon
pollita Sun Dec  1 21:09:30 2002 EDT

  Modified files:  
/phpdoc/en/reference/mysql/functionsmysql-connect.xml 
  Log:
  Added usage of mysql_error() in example.
  
  
Index: phpdoc/en/reference/mysql/functions/mysql-connect.xml
diff -u phpdoc/en/reference/mysql/functions/mysql-connect.xml:1.3 
phpdoc/en/reference/mysql/functions/mysql-connect.xml:1.4
--- phpdoc/en/reference/mysql/functions/mysql-connect.xml:1.3   Wed Jul 10 11:34:01 
2002
+++ phpdoc/en/reference/mysql/functions/mysql-connect.xml   Sun Dec  1 21:09:30 
+2002
@@ -1,5 +1,5 @@
 ?xml version=1.0 encoding=iso-8859-1?
-!-- $Revision: 1.3 $ --
+!-- $Revision: 1.4 $ --
 !-- splitted from ./en/functions/mysql.xml, last change in rev 1.2 --
   refentry id=function.mysql-connect
refnamediv
@@ -88,7 +88,7 @@
 ![CDATA[
 ?php
 $link = mysql_connect(localhost, mysql_user, mysql_password)
-or die(Could not connect);
+or die(Could not connect:  . mysql_error());
 print (Connected successfully);
 mysql_close($link);
 ?



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




[PHP-DOC] #20743 [Opn-Asn]: mysql_error in mysql code examples

2002-12-01 Thread pollita
 ID:   20743
 Updated by:   [EMAIL PROTECTED]
 Reported By:  [EMAIL PROTECTED]
-Status:   Open
+Status:   Assigned
 Bug Type: Documentation problem
 Operating System: Linux
 PHP Version:  4.2.3
-Assigned To:  
+Assigned To:  pollita


Previous Comments:


[2002-12-01 03:04:11] [EMAIL PROTECTED]

Hello, 
I answer questions on a php help bbs (www.phpworld.com).  
One of the most common problems reported is that the users 
don't know why their database calls are not working.  
Usually they have copied the code right out of the 
examples (e.g. mysql_connect()), which do not utilize 
mysql_error().  I was wondering if these examples could be 
changed to use mysql_error() and thus reduce newbie 
confusion. 
Thank you for your time. 




-- 
Edit this bug report at http://bugs.php.net/?id=20743edit=1


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




[PHP-DOC] cvs: phpdoc /en/reference/yaz/functions yaz-itemorder.xml

2002-12-01 Thread Damien Seguy
damsSun Dec  1 21:21:13 2002 EDT

  Modified files:  
/phpdoc/en/reference/yaz/functions  yaz-itemorder.xml 
  Log:
  using url entities
  
  
Index: phpdoc/en/reference/yaz/functions/yaz-itemorder.xml
diff -u phpdoc/en/reference/yaz/functions/yaz-itemorder.xml:1.2 
phpdoc/en/reference/yaz/functions/yaz-itemorder.xml:1.3
--- phpdoc/en/reference/yaz/functions/yaz-itemorder.xml:1.2 Wed Apr 17 02:45:27 
2002
+++ phpdoc/en/reference/yaz/functions/yaz-itemorder.xml Sun Dec  1 21:21:13 2002
@@ -1,5 +1,5 @@
 ?xml version=1.0 encoding=iso-8859-1?
-!-- $Revision: 1.2 $ --
+!-- $Revision: 1.3 $ --
 !-- splitted from ./en/functions/yaz.xml, last change in rev 1.8 --
   refentry id=function.yaz-itemorder
refnamediv
@@ -18,9 +18,9 @@
  This function prepares for an Extended Services request using the
  Profile for the Use of Z39.50 Item Order Extended Service to
  Transport ILL (Profile/1). See
- ulink url=http://www.nlc-bnc.ca/iso/ill/stanprf.htm;this/ulink
+ ulink url=url.yaz.ill;this/ulink
  and the
- ulink url=http://www.nlc-bnc.ca/iso/ill/document/standard/z-ill-1a.pdf;
+ ulink url=url.yaz.specs;
  specification/ulink.
  The args parameter must be a hash array with information about the
  Item Order request to be sent. The key of the hash is the name



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




[PHP-DOC] cvs: phpdoc /entities global.ent

2002-12-01 Thread Damien Seguy
damsSun Dec  1 21:23:08 2002 EDT

  Modified files:  
/phpdoc/entitiesglobal.ent 
  Log:
  adding mersenne and stepwise
  
  
Index: phpdoc/entities/global.ent
diff -u phpdoc/entities/global.ent:1.60 phpdoc/entities/global.ent:1.61
--- phpdoc/entities/global.ent:1.60 Sat Nov 30 13:08:47 2002
+++ phpdoc/entities/global.ent  Sun Dec  1 21:23:07 2002
@@ -1,6 +1,6 @@
 !-- -*- SGML -*-
 
- $Id: global.ent,v 1.60 2002/11/30 18:08:47 goba Exp $
+ $Id: global.ent,v 1.61 2002/12/02 02:23:07 dams Exp $
 
  Contains global macros for all the XML documents.
 
@@ -109,6 +109,7 @@
 !ENTITY url.mcrypt.bcm 
http://fn2.freenet.edmonton.ab.ca/~jsavard/crypto/co0409.htm;
 !ENTITY url.mdac http://www.microsoft.com/data/;
 !ENTITY url.mersenne http://www.math.keio.ac.jp/~matumoto/emt.html;
+!ENTITY url.mersenne.twister http://www.scp.syr.edu/~marc/hawk/twister.html;
 !ENTITY url.mhash http://mhash.sourceforge.net/;
 !ENTITY url.ming http://ming.sourceforge.net/;
 !ENTITY url.mirrors http://www.php.net/mirrors.php;
@@ -197,6 +198,9 @@
 !ENTITY url.sleepycat http://www.sleepycat.com/;
 !ENTITY url.solid http://www.solidtech.com/;
 !ENTITY url.strnatcmp http://naturalordersort.org/;
+!ENTITY url.stepwise.macosx-client 
+http://www.stepwise.com/Articles/Workbench/Apache-1.3.14-MacOSX.html;
+!ENTITY url.stepwise.macosx-server 
+http://www.stepwise.com/Articles/Workbench/Apache-1.3.14-MacOSX.html;
+!ENTITY url.stepwise http://www.stepwise.com/;
 !ENTITY url.swf ftp://ftp.sgi.com/sgi/graphics/grafica/flash;
 !ENTITY url.swf.test http://www.designmultimedia.com/swfphp/test.swf;
 !ENTITY url.sybase http://www.sybase.com/;



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




Re: [PHP-DOC] cvs: phpdoc /entities global.ent

2002-12-01 Thread Philip Olson

All these links are 404.  I removed them
from here and the docs for a reason, please
revert.  If some links still exist in the
docs, let's fix them.

Also, stepwise doesn't support PHP anymore,
we need a new macos resource.

Regards,
Philip


On Mon, 2 Dec 2002, Damien Seguy wrote:

 dams  Sun Dec  1 21:23:08 2002 EDT
 
   Modified files:  
 /phpdoc/entities  global.ent 
   Log:
   adding mersenne and stepwise
   
   
 Index: phpdoc/entities/global.ent
 diff -u phpdoc/entities/global.ent:1.60 phpdoc/entities/global.ent:1.61
 --- phpdoc/entities/global.ent:1.60   Sat Nov 30 13:08:47 2002
 +++ phpdoc/entities/global.entSun Dec  1 21:23:07 2002
 @@ -1,6 +1,6 @@
  !-- -*- SGML -*-
  
 - $Id: global.ent,v 1.60 2002/11/30 18:08:47 goba Exp $
 + $Id: global.ent,v 1.61 2002/12/02 02:23:07 dams Exp $
  
   Contains global macros for all the XML documents.
  
 @@ -109,6 +109,7 @@
  !ENTITY url.mcrypt.bcm 
http://fn2.freenet.edmonton.ab.ca/~jsavard/crypto/co0409.htm;
  !ENTITY url.mdac http://www.microsoft.com/data/;
  !ENTITY url.mersenne http://www.math.keio.ac.jp/~matumoto/emt.html;
 +!ENTITY url.mersenne.twister http://www.scp.syr.edu/~marc/hawk/twister.html;
  !ENTITY url.mhash http://mhash.sourceforge.net/;
  !ENTITY url.ming http://ming.sourceforge.net/;
  !ENTITY url.mirrors http://www.php.net/mirrors.php;
 @@ -197,6 +198,9 @@
  !ENTITY url.sleepycat http://www.sleepycat.com/;
  !ENTITY url.solid http://www.solidtech.com/;
  !ENTITY url.strnatcmp http://naturalordersort.org/;
 +!ENTITY url.stepwise.macosx-client 
http://www.stepwise.com/Articles/Workbench/Apache-1.3.14-MacOSX.html;
 +!ENTITY url.stepwise.macosx-server 
http://www.stepwise.com/Articles/Workbench/Apache-1.3.14-MacOSX.html;
 +!ENTITY url.stepwise http://www.stepwise.com/;
  !ENTITY url.swf ftp://ftp.sgi.com/sgi/graphics/grafica/flash;
  !ENTITY url.swf.test http://www.designmultimedia.com/swfphp/test.swf;
  !ENTITY url.sybase http://www.sybase.com/;
 
 
 
 -- 
 PHP Documentation Mailing List (http://www.php.net/)
 To unsubscribe, visit: http://www.php.net/unsub.php
 


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




[PHP-DOC] cvs: phpdoc /en/reference/mysql/functions mysql-affected-rows.xml mysql-close.xml mysql-create-db.xml mysql-data-seek.xml mysql-fetch-array.xml mysql-fetch-field.xml mysql-field-name.xml mysql-get-host-info.xml mysql-get-proto-info.xml mysql-get-server-info.xml mysql-insert-id.xml mysql-query.xml

2002-12-01 Thread Sara Golemon
pollita Sun Dec  1 21:37:30 2002 EDT

  Modified files:  
/phpdoc/en/reference/mysql/functionsmysql-affected-rows.xml 
mysql-close.xml 
mysql-create-db.xml 
mysql-data-seek.xml 
mysql-fetch-array.xml 
mysql-fetch-field.xml 
mysql-field-name.xml 
mysql-get-host-info.xml 
mysql-get-proto-info.xml 
mysql-get-server-info.xml 
mysql-insert-id.xml 
mysql-query.xml 
  Log:
  Documentation Bug #20743.  Added usage of mysql_error() to examples.
  
  
Index: phpdoc/en/reference/mysql/functions/mysql-affected-rows.xml
diff -u phpdoc/en/reference/mysql/functions/mysql-affected-rows.xml:1.5 
phpdoc/en/reference/mysql/functions/mysql-affected-rows.xml:1.6
--- phpdoc/en/reference/mysql/functions/mysql-affected-rows.xml:1.5 Sun May 12 
14:53:04 2002
+++ phpdoc/en/reference/mysql/functions/mysql-affected-rows.xml Sun Dec  1 21:37:29 
+2002
@@ -1,5 +1,5 @@
 ?xml version=1.0 encoding=iso-8859-1?
-!-- $Revision: 1.5 $ --
+!-- $Revision: 1.6 $ --
 !-- splitted from ./en/functions/mysql.xml, last change in rev 1.2 --
   refentry id=function.mysql-affected-rows
refnamediv
@@ -58,7 +58,7 @@
 ?php
 /* connect to database */
 mysql_pconnect(localhost, mysql_user, mysql_password) or
-die (Could not connect);
+die(Could not connect:  . mysql_error());
 
 /* this should return the correct numbers of deleted records */
 mysql_query(DELETE FROM mytable WHERE id  10);
@@ -87,7 +87,7 @@
 ?php
 /* connect to database */
 mysql_pconnect(localhost, mysql_user, mysql_password) or
-die (Could not connect);
+die(Could not connect:  . mysql_error());
 
 /* Update records */
 mysql_query(UPDATE mytable SET used=1 WHERE id  10);
Index: phpdoc/en/reference/mysql/functions/mysql-close.xml
diff -u phpdoc/en/reference/mysql/functions/mysql-close.xml:1.2 
phpdoc/en/reference/mysql/functions/mysql-close.xml:1.3
--- phpdoc/en/reference/mysql/functions/mysql-close.xml:1.2 Wed Apr 17 02:41:05 
2002
+++ phpdoc/en/reference/mysql/functions/mysql-close.xml Sun Dec  1 21:37:29 2002
@@ -1,5 +1,5 @@
 ?xml version=1.0 encoding=iso-8859-1?
-!-- $Revision: 1.2 $ --
+!-- $Revision: 1.3 $ --
 !-- splitted from ./en/functions/mysql.xml, last change in rev 1.2 --
   refentry id=function.mysql-close
refnamediv
@@ -41,7 +41,7 @@
 ![CDATA[
 ?php
 $link = mysql_connect(localhost, mysql_user, mysql_password)
-or exit(Could not connect);
+or die(Could not connect:  . mysql_error());
 print (Connected successfully);
 mysql_close($link);
 ?
Index: phpdoc/en/reference/mysql/functions/mysql-create-db.xml
diff -u phpdoc/en/reference/mysql/functions/mysql-create-db.xml:1.3 
phpdoc/en/reference/mysql/functions/mysql-create-db.xml:1.4
--- phpdoc/en/reference/mysql/functions/mysql-create-db.xml:1.3 Sun Apr 21 09:03:37 
2002
+++ phpdoc/en/reference/mysql/functions/mysql-create-db.xml Sun Dec  1 21:37:29 
+2002
@@ -1,5 +1,5 @@
 ?xml version=1.0 encoding=iso-8859-1?
-!-- $Revision: 1.3 $ --
+!-- $Revision: 1.4 $ --
 !-- splitted from ./en/functions/mysql.xml, last change in rev 1.2 --
   refentry id=function.mysql-create-db
refnamediv
@@ -29,12 +29,12 @@
 ![CDATA[
 ?php
 $link = mysql_pconnect(localhost, mysql_user, mysql_password)
-or exit(Could not connect);
+or die(Could not connect:  . mysql_error());
 
 if (mysql_create_db(my_db)) {
 print (Database created successfully\n);
 } else {
-printf (Error creating database: %s\n, mysql_error ());
+printf (Error creating database: %s\n, mysql_error());
 }
 ?
 ]]
Index: phpdoc/en/reference/mysql/functions/mysql-data-seek.xml
diff -u phpdoc/en/reference/mysql/functions/mysql-data-seek.xml:1.4 
phpdoc/en/reference/mysql/functions/mysql-data-seek.xml:1.5
--- phpdoc/en/reference/mysql/functions/mysql-data-seek.xml:1.4 Mon Apr 29 05:13:35 
2002
+++ phpdoc/en/reference/mysql/functions/mysql-data-seek.xml Sun Dec  1 21:37:29 
+2002
@@ -1,5 +1,5 @@
 ?xml version=1.0 encoding=iso-8859-1?
-!-- $Revision: 1.4 $ --
+!-- $Revision: 1.5 $ --
 !-- splitted from ./en/functions/mysql.xml, last change in rev 1.2 --
   refentry id=function.mysql-data-seek
refnamediv
@@ -40,19 +40,19 @@
 ![CDATA[
 ?php
 $link = mysql_pconnect(localhost, mysql_user, mysql_password)
-or die(Could not connect);
+or die(Could not connect:  . mysql_error());
 
 mysql_select_db(samp_db)
-or exit(Could not select database);
+ 

[PHP-DOC] #20743 [Asn-Csd]: mysql_error in mysql code examples

2002-12-01 Thread pollita
 ID:   20743
 Updated by:   [EMAIL PROTECTED]
 Reported By:  [EMAIL PROTECTED]
-Status:   Assigned
+Status:   Closed
 Bug Type: Documentation problem
 Operating System: Linux
 PHP Version:  4.2.3
 Assigned To:  pollita
 New Comment:

This bug has been fixed in CVS.

In case this was a PHP problem, snapshots of the sources are packaged
every three hours; this change will be in the next snapshot. You can
grab the snapshot at http://snaps.php.net/.
 
In case this was a documentation problem, the fix will show up soon at
http://www.php.net/manual/.

In case this was a PHP.net website problem, the change will show
up on the PHP.net site and on the mirror sites in short time.
 
Thank you for the report, and for helping us make PHP better.




Previous Comments:


[2002-12-01 03:04:11] [EMAIL PROTECTED]

Hello, 
I answer questions on a php help bbs (www.phpworld.com).  
One of the most common problems reported is that the users 
don't know why their database calls are not working.  
Usually they have copied the code right out of the 
examples (e.g. mysql_connect()), which do not utilize 
mysql_error().  I was wondering if these examples could be 
changed to use mysql_error() and thus reduce newbie 
confusion. 
Thank you for your time. 




-- 
Edit this bug report at http://bugs.php.net/?id=20743edit=1


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




Re: [PHP-DOC] cvs: phpdoc /en/reference/mysql/functionsmysql-affected-rows.xml mysql-close.xml mysql-create-db.xml mysql-data-seek.xmlmysql-fetch-array.xml mysql-fetch-field.xml mysql-field-name.xmlmysql-get-host-info.xml mysql-get-proto-info.xml mysql-get-server-info.xmlmysql-insert-id.xml mysql-query.xml

2002-12-01 Thread Philip Olson
Hello Sara-

This might be worth discussing before implementing 
across the board, I currently don't know how I feel
but do we really want newbies to post sql errors all 
over the place?  I think this may be why mysql_error() 
wasn't used everywhere.  So let's discuss a way
to handle errors and then implement.  Should we
introduce a if debug mode = on, print error type
philosophy?  Or use trigger_error?  Will all this
just add to the confusion?

Regards,
Philip


On Mon, 2 Dec 2002, Sara Golemon wrote:

 pollita   Sun Dec  1 21:37:30 2002 EDT
 
   Modified files:  
 /phpdoc/en/reference/mysql/functions  mysql-affected-rows.xml 
   mysql-close.xml 
   mysql-create-db.xml 
   mysql-data-seek.xml 
   mysql-fetch-array.xml 
   mysql-fetch-field.xml 
   mysql-field-name.xml 
   mysql-get-host-info.xml 
   mysql-get-proto-info.xml 
   mysql-get-server-info.xml 
   mysql-insert-id.xml 
   mysql-query.xml 
   Log:
   Documentation Bug #20743.  Added usage of mysql_error() to examples.
   
   


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




[PHP-DOC] cvs: phpdoc /entities global.ent

2002-12-01 Thread Damien Seguy
damsSun Dec  1 22:22:34 2002 EDT

  Modified files:  
/phpdoc/entitiesglobal.ent 
  Log:
  removing dead links, and updating fr doc
  
  
Index: phpdoc/entities/global.ent
diff -u phpdoc/entities/global.ent:1.61 phpdoc/entities/global.ent:1.62
--- phpdoc/entities/global.ent:1.61 Sun Dec  1 21:23:07 2002
+++ phpdoc/entities/global.ent  Sun Dec  1 22:22:33 2002
@@ -1,6 +1,6 @@
 !-- -*- SGML -*-
 
- $Id: global.ent,v 1.61 2002/12/02 02:23:07 dams Exp $
+ $Id: global.ent,v 1.62 2002/12/02 03:22:33 dams Exp $
 
  Contains global macros for all the XML documents.
 
@@ -109,7 +109,6 @@
 !ENTITY url.mcrypt.bcm 
http://fn2.freenet.edmonton.ab.ca/~jsavard/crypto/co0409.htm;
 !ENTITY url.mdac http://www.microsoft.com/data/;
 !ENTITY url.mersenne http://www.math.keio.ac.jp/~matumoto/emt.html;
-!ENTITY url.mersenne.twister http://www.scp.syr.edu/~marc/hawk/twister.html;
 !ENTITY url.mhash http://mhash.sourceforge.net/;
 !ENTITY url.ming http://ming.sourceforge.net/;
 !ENTITY url.mirrors http://www.php.net/mirrors.php;
@@ -198,9 +197,6 @@
 !ENTITY url.sleepycat http://www.sleepycat.com/;
 !ENTITY url.solid http://www.solidtech.com/;
 !ENTITY url.strnatcmp http://naturalordersort.org/;
-!ENTITY url.stepwise.macosx-client 
http://www.stepwise.com/Articles/Workbench/Apache-1.3.14-MacOSX.html;
-!ENTITY url.stepwise.macosx-server 
http://www.stepwise.com/Articles/Workbench/Apache-1.3.14-MacOSX.html;
-!ENTITY url.stepwise http://www.stepwise.com/;
 !ENTITY url.swf ftp://ftp.sgi.com/sgi/graphics/grafica/flash;
 !ENTITY url.swf.test http://www.designmultimedia.com/swfphp/test.swf;
 !ENTITY url.sybase http://www.sybase.com/;



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




[PHP-DOC] cvs: phpdoc /en/features file-upload.xml

2002-12-01 Thread Sara Golemon
pollita Mon Dec  2 00:57:11 2002 EDT

  Modified files:  
/phpdoc/en/features file-upload.xml 
  Log:
  Doc Bug #14298 and #10307: 
  PUT method changed between PHP3 and PHP4.  Use stdin stream now.
  
  
Index: phpdoc/en/features/file-upload.xml
diff -u phpdoc/en/features/file-upload.xml:1.50 phpdoc/en/features/file-upload.xml:1.51
--- phpdoc/en/features/file-upload.xml:1.50 Tue Jul 16 14:16:01 2002
+++ phpdoc/en/features/file-upload.xml  Mon Dec  2 00:57:11 2002
@@ -1,5 +1,5 @@
 ?xml version=1.0 encoding=iso-8859-1?
-!-- $Revision: 1.50 $ --
+!-- $Revision: 1.51 $ --
  chapter id=features.file-upload
   titleHandling file uploads/title
 
@@ -372,7 +372,37 @@
 
   sect1 id=features.file-upload.put-method
titlePUT method support/title
+   para
+PUT method support has changed between PHP3 and PHP4.
+In PHP4, one should use the standard input stream to read
+the contents of an HTTP PUT.
+example
+ titleSaving HTTP PUT files with PHP4/title
+ programlisting role=php
+![CDATA[
+?php
+/* PUT data comes in on the stdin stream */
+$putdata = fopen(php://stdin,r);
+
+/* Open a file for writting */
+$fp = fopen(myputfile.ext,w);
+
+/* Read the data 1kb at a time
+   and write to the file */
+while ($data = fread($putdata,1024))
+  fwrite($fp,$data);
 
+/* Close the streams */
+fclose($fp);
+fclose($putdata);
+?
+]]
+ /programlisting
+/example
+note
+ All documentation below applies to PHP3 only.
+/note
+   /para
para
 PHP provides support for the HTTP PUT method used by clients such
 as Netscape Composer and W3C Amaya.  PUT requests are much simpler



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




[PHP-DOC] #14298 [Ana-Csd]: PUT method not supported in PHP 4

2002-12-01 Thread pollita
 ID:  14298
 Updated by:  [EMAIL PROTECTED]
 Reported By: [EMAIL PROTECTED]
-Status:  Analyzed
+Status:  Closed
 Bug Type:Documentation problem
 PHP Version: 4.0.6
 Assigned To: hholzgra
 New Comment:

This bug has been fixed in CVS.

In case this was a PHP problem, snapshots of the sources are packaged
every three hours; this change will be in the next snapshot. You can
grab the snapshot at http://snaps.php.net/.
 
In case this was a documentation problem, the fix will show up soon at
http://www.php.net/manual/.

In case this was a PHP.net website problem, the change will show
up on the PHP.net site and on the mirror sites in short time.
 
Thank you for the report, and for helping us make PHP better.

Provided example of using php://stdin and note re: change from PHP3.


Previous Comments:


[2002-11-12 07:41:26] [EMAIL PROTECTED]

this is a PHP 3 only feature 
that noone ever ported to PHP 4 ...

with 4.3 you will be able to read
the PUT data from the php://input stream

as the $PHP_PUT stuff in PHP 3 seems to
be something almost never used and as 
the new streams solution is so easy to 
use i think it is not worth to port the
PHP 3 feature here ...

in 4.3 you will be able to just do a

$in = fopen(php://input,rb);
$out = fopen($outfile,wb);
while(!feof($in)) {
  fwrite($out, fread($in, $bufsize));
}
fclose($in);
fclose($out);

no nead to deal with temporary files,
no disk space wasted when the script
doesn't need the PUT data, and the
approach is not limited to PUT requests
but will work with all HTTP methods
carrying content

changed to documentation problem



[2002-05-13 08:27:02] [EMAIL PROTECTED]

Just wanted to drop a note about a test I've done:

I tried a simple perl script getting the PUT file and it worked.

Calling the same script through PHP yields no file meaning that PHP
does something the uploaded file since the perlscript used by itself
works and then called through PHP does'nt.



[2002-05-09 07:55:50] [EMAIL PROTECTED]

If you find the temporary file variable I would be much obliged if you
could drop me a line.

BTW I was thinking would'nt it be better to have the PUT values in the
superglobal $_FILES ? Or at least in a $HTTP_PUT_FILE var.

A possible solution could be something like the following:

$HTTP_PUT_FILE['request_uri']
Path of the proposed upload like /mytest/filename.htm

$HTTP_PUT_FILE['path_translated']
The full path of the proposed upload like
/usr/home/foo/bar/public_html/mytest/filename.htm

$HTTP_PUT_FILE['size']
The size, in bytes, of the uploaded file. 

$HTTP_PUT_FILE['tmp_name']
Temp name something like /tmp/hfdhjfufd8733

My only bad is that I cant program in C otherwise I would have been
there doing it already.



[2002-05-08 09:44:42] [EMAIL PROTECTED]

Current status on this is that I ignored it for a while - 
I am taking a look at it again.




[2002-05-03 12:15:39] [EMAIL PROTECTED]

Whats happening on this subject?



The remainder of the comments for this report are too long. To view
the rest of the comments, please view the bug report online at
http://bugs.php.net/14298

-- 
Edit this bug report at http://bugs.php.net/?id=14298edit=1


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




[PHP-DOC] cvs: phpdoc /en/features file-upload.xml

2002-12-01 Thread Sara Golemon
pollita Mon Dec  2 01:17:42 2002 EDT

  Modified files:  
/phpdoc/en/features file-upload.xml 
  Log:
  Formatting fix.
  
  
Index: phpdoc/en/features/file-upload.xml
diff -u phpdoc/en/features/file-upload.xml:1.51 phpdoc/en/features/file-upload.xml:1.52
--- phpdoc/en/features/file-upload.xml:1.51 Mon Dec  2 00:57:11 2002
+++ phpdoc/en/features/file-upload.xml  Mon Dec  2 01:17:41 2002
@@ -1,5 +1,5 @@
 ?xml version=1.0 encoding=iso-8859-1?
-!-- $Revision: 1.51 $ --
+!-- $Revision: 1.52 $ --
  chapter id=features.file-upload
   titleHandling file uploads/title
 
@@ -372,10 +372,12 @@
 
   sect1 id=features.file-upload.put-method
titlePUT method support/title
-   para
+   simpara
 PUT method support has changed between PHP3 and PHP4.
 In PHP4, one should use the standard input stream to read
 the contents of an HTTP PUT.
+   /simpara
+   para
 example
  titleSaving HTTP PUT files with PHP4/title
  programlisting role=php
@@ -399,10 +401,12 @@
 ]]
  /programlisting
 /example
-note
- All documentation below applies to PHP3 only.
-/note
/para
+   note
+para
+ All documentation below applies to PHP3 only.
+/para
+   /note
para
 PHP provides support for the HTTP PUT method used by clients such
 as Netscape Composer and W3C Amaya.  PUT requests are much simpler



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