[PHP-DOC] cvs: phpdoc /ro/functions errorfunc.xml

2002-04-01 Thread Adrian Ciutureanu

adu Mon Apr  1 05:44:44 2002 EDT

  Modified files:  
/phpdoc/ro/functionserrorfunc.xml 
  Log:
  Reformated PHP code examples according to
  http://cvs.php.net/co.php/phpdoc/RFC/coding_standards?r=1.3
  and replaced tabs with spaces.
  

Index: phpdoc/ro/functions/errorfunc.xml
diff -u phpdoc/ro/functions/errorfunc.xml:1.1 phpdoc/ro/functions/errorfunc.xml:1.2
--- phpdoc/ro/functions/errorfunc.xml:1.1   Tue Mar  5 05:00:51 2002
+++ phpdoc/ro/functions/errorfunc.xml   Mon Apr  1 05:44:44 2002
@@ -1,572 +1,578 @@
-?xml version=1.0 encoding=iso-8859-2?
-!-- $Revision: 1.1 $ --
- reference id=ref.errorfunc
-  titleErori - gestiune ºi înregistrare/title
-  titleabbrevErorile ºi înregistrarea/titleabbrev
-
-  partintro
-   para
-Aceste funcþii se ocupã cu tratarea ºi înregistrarea erorilor. Ele permit 
definirea
-   propriilor reguli pentru tratarea erorilor, precum ºi modificarea modului în 
care
-   erorile pot fi înregistrate. Veþi putea adapta ºi îmbunãtãþi modul în care 
erorile sunt
-   raportate ºi înregistrate, pentru satisfacerea propriilor nevoi.
-   /para
-   para 
-Cu funcþiile de înregistrare puteþi trimite mesaje la alte maºini, la o adresa de 
email
-   (sau la un sistem email pe pager!), la sisteme jurnal etc. În acest fel, puteþi
-   înregistra ºi monitoriza cele mai importante pãrþi ale aplicaþiilor ºi ale 
paginilor web.
-   /para
-   para 
-Funcþiile pentru raportarea erorilor vã permit personalizarea nivelului ºi a 
tipului de
-   erori raportate, plecând de la simple notificãri ºi pânã la funcþii 
personalizate.
-   /para
-  /partintro
-
-  refentry id=function.error-log
-   refnamediv
-refnameerror_log/refname
-refpurposeTrimite un mesaj de eroare cãtre o destinaþie/refpurpose
-   /refnamediv
-   refsect1
-titleDescriere/title
- methodsynopsis
-  typeint/typemethodnameerror_log/methodname
-  methodparamtypestring/typeparametermessage/parameter/methodparam
-  methodparam 
choice=opttypeint/typeparametermessage_type/parameter/methodparam
-  methodparam 
choice=opttypestring/typeparameterdestination/parameter/methodparam
-  methodparam 
choice=opttypestring/typeparameterextra_headers/parameter/methodparam
- /methodsynopsis
-para
- Trimite un mesaj de eroare cãtre jurnalul de erori al serverului web, cãtre un 
port
- acronymTCP/acronym sau cãtre un fiºier. Primul parametru,
- parametermessage/parameter, este mesajul de eroare care trebuie înregistrat.
-Cel de-al doilea parametru, parametermessage_type/parameter, spune unde 
trebuie
-sã fie trimis mesajul:
- table
-  titleTipuri de înregistrãri functionerror_log/function/title
-  tgroup cols=2
-   tbody
-row
- entry0/entry
- entry
-  parametermessage/parameter este trimis la sistemul de înregistrare al PHP, 
folosind
- mecanismul de înregistrare al sistemului de operare sau un fiºier, în 
funcþie de cum este
- setatã directiva de configurare link 
linkend=ini.error-logerror_log/link.
- /entry
-/row
-row
- entry1/entry
- entry
-  parametermessage/parameter va fi trimis cãtre adresa de email setatã de 
cãtre parametrul
- parameterdestination/parameter. Acesta este singurul tip de înregistrare 
unde este
- folosit cel de-al patrulea parametru, parameterextra_headers/parameter. 
Acest tip de
- mesaj foloseºte aceeaºi funcþie internã ca ºi functionmail/function.
- /entry
-/row
-row
- entry2/entry
- entry
-  parametermessage/parameter este trimis cãtre conexiunea de depanare PHP. 
Aceastã
- opþiune este disponibilã doar dacã directiva
- link linkend=install.configure.enable-debuggerremote_debugging/link a 
fost activatã.
- În acest caz, parametrul parameterdestination/parameter specificã numele 
gazdei sau
- adresa IP, opþional numãrul portului, pentru socket-ul de recepþionare al 
informaþiilor
- de depanare.
- /entry
-/row
-row
- entry3/entry
- entry
-  parametermessage/parameter  este adãugat la fiºierul
-  parameterdestination/parameter.
- /entry
-/row
-   /tbody
-  /tgroup
- /table
-/para
-warning
- para
-  Depanarea distantã via TCP/IP este o facilitate disponibilã în PHP 3 ºi
- emphasisnu/emphasis este disponibilã în PHP 4.
- /para
-/warning
-para
- example role=php
-  titleExemple functionerror_log/function/title
-  programlisting role=php
-![CDATA[
-// se trimite o notificare prin serverul de înregistrare
-// dacã nu se poate conecta la baza de date
-if (!Ora_Logon ($username, $password)) {
-error_log (Baza de date Oracle nu este disponibila!, 0);
-}
-
-// notificã administratorul prin email
-if (!($foo = allocate_new_foo()) {
-error_log (A apãrut o problema, nu s-a alocat memorie pentru FOO!, 1,
-   [EMAIL PROTECTED]);
-}

[PHP-DOC] cvs: phpdoc /it/functions var.xml

2002-04-01 Thread Simone Cortesi

cortesi Mon Apr  1 10:47:06 2002 EDT

  Modified files:  
/phpdoc/it/functionsvar.xml 
  Log:
  giving back lost credit to marchesini
  
Index: phpdoc/it/functions/var.xml
diff -u phpdoc/it/functions/var.xml:1.16 phpdoc/it/functions/var.xml:1.17
--- phpdoc/it/functions/var.xml:1.16Thu Mar 28 08:27:53 2002
+++ phpdoc/it/functions/var.xml Mon Apr  1 10:47:05 2002
 -1,5 +1,6 
 ?xml version=1.0 encoding=iso-8859-1?
-!-- EN-Revision: 1.99 Maintainer: darvin Status: ready --
+!-- EN-Revision: 1.99 Maintainer: darvina Status: ready --
+!-- CREDITS: marchesini --
 reference id=ref.variables
   titleFunzioni di Variabili/title
   titleabbrevVariabili/titleabbrev





[PHP-DOC] cvs: phpdoc /it translation.xml /it/functions classobj.xml mssql.xml pcre.xml regex.xml snmp.xml uodbc.xml

2002-04-01 Thread Simone Cortesi

cortesi Mon Apr  1 10:52:03 2002 EDT

  Modified files:  
/phpdoc/it  translation.xml 
/phpdoc/it/functionsclassobj.xml mssql.xml regex.xml uodbc.xml 
pcre.xml snmp.xml 
  Log:
  Darvin Andrioli now has CVS, but changed nick
  
Index: phpdoc/it/translation.xml
diff -u phpdoc/it/translation.xml:1.58 phpdoc/it/translation.xml:1.59
--- phpdoc/it/translation.xml:1.58  Thu Mar 28 17:16:14 2002
+++ phpdoc/it/translation.xml   Mon Apr  1 10:52:02 2002
@@ -21,7 +21,7 @@
   person name=Simone Cortesi   email=[EMAIL PROTECTED]  nick=cortesi 
cvs=yes  /
   person name=Marco Cucinato   email=[EMAIL PROTECTED]  nick=cucinato 
cvs=yes /
   person name=Cesare D'Amico   email=[EMAIL PROTECTED], [EMAIL PROTECTED] 
nick=damico/
-  person name=Darvin Andrioli  email=[EMAIL PROTECTED]   
nick=darvin   /
+  person name=Darvin Andrioli  email=[EMAIL PROTECTED] 
+nick=darvina cvs=yes /
   person name=Enrico Donelli   email=[EMAIL PROTECTED]
nick=donelli  /
   person name=Giacomo Tesioemail=[EMAIL PROTECTED]  
nick=giacomo  /
   person name=Fabio Gandolaemail=[EMAIL PROTECTED] 
nick=fabio/
@@ -77,9 +77,9 @@
   file name=functions/image.xml person=saintex  type=offline 
revision=1.83 date=26/03/2002 /
   file name=faq/databases.xml   person=guidoz   type=offline 
date=28/03/2002 /
   file name=faq/using.xml   person=guidoz   type=offline 
date=28/03/2002 /
-  file name=functions/sem.xml   person=darvin   type=offline 
date=28/03/2002 /
-  file name=functions/shmop.xml person=darvin   type=offline 
date=28/03/2002 /
-  file name=functions/sockets.xml   person=darvin   type=offline 
date=28/03/2002 /
+  file name=functions/sem.xml   person=darvina   type=offline 
+date=28/03/2002 /
+  file name=functions/shmop.xml person=darvina   type=offline 
+date=28/03/2002 /
+  file name=functions/sockets.xml   person=darvina   type=offline 
+date=28/03/2002 /
  /work-in-progress
 
 /translation
Index: phpdoc/it/functions/classobj.xml
diff -u phpdoc/it/functions/classobj.xml:1.14 phpdoc/it/functions/classobj.xml:1.15
--- phpdoc/it/functions/classobj.xml:1.14   Thu Mar 28 16:41:52 2002
+++ phpdoc/it/functions/classobj.xmlMon Apr  1 10:52:03 2002
@@ -1,5 +1,5 @@
 ?xml version=1.0 encoding=iso-8859-1?
-!-- EN-Revision: 1.37 Maintainer: darvin  Status: ready --
+!-- EN-Revision: 1.37 Maintainer: darvina Status: ready --
  reference id=ref.classobj
   titleFunzioni per Classi/Oggetti /title
   titleabbrevClassi/Oggetti/titleabbrev
Index: phpdoc/it/functions/mssql.xml
diff -u phpdoc/it/functions/mssql.xml:1.17 phpdoc/it/functions/mssql.xml:1.18
--- phpdoc/it/functions/mssql.xml:1.17  Thu Mar 28 16:36:35 2002
+++ phpdoc/it/functions/mssql.xml   Mon Apr  1 10:52:03 2002
@@ -1,5 +1,5 @@
 ?xml version=1.0 encoding=iso-8859-1?
-!-- EN-Revision: 1.30 Maintainer: darvin  Status: ready --
+!-- EN-Revision: 1.30 Maintainer: darvina Status: ready --
  reference id=ref.mssql
   titleFunzioni per Microsoft SQL Server/title
   titleabbrevMS SQL Server/titleabbrev
Index: phpdoc/it/functions/regex.xml
diff -u phpdoc/it/functions/regex.xml:1.9 phpdoc/it/functions/regex.xml:1.10
--- phpdoc/it/functions/regex.xml:1.9   Thu Mar 21 05:26:16 2002
+++ phpdoc/it/functions/regex.xml   Mon Apr  1 10:52:03 2002
@@ -1,5 +1,5 @@
 ?xml version=1.0 encoding=iso-8859-1?
-!-- EN-Revision: 1.41 Maintainer: darvin  Status: ready --
+!-- EN-Revision: 1.41 Maintainer: darvina Status: ready --
  reference id=ref.regex
   titleFunzioni per le espressioni regolari (POSIX estesa)/title
   titleabbrevRegexp/titleabbrev
Index: phpdoc/it/functions/uodbc.xml
diff -u phpdoc/it/functions/uodbc.xml:1.19 phpdoc/it/functions/uodbc.xml:1.20
--- phpdoc/it/functions/uodbc.xml:1.19  Thu Mar 21 05:51:29 2002
+++ phpdoc/it/functions/uodbc.xml   Mon Apr  1 10:52:03 2002
@@ -1,5 +1,5 @@
 ?xml version=1.0 encoding=iso-8859-1?
-!-- EN-Revision: 1.33 Maintainer: darvin  Status: ready --
+!-- EN-Revision: 1.33 Maintainer: darvina Status: ready --
  reference id=ref.odbc
   titleFunzioni ODBC Unificate/title
   titleabbrevODBC/titleabbrev
Index: phpdoc/it/functions/pcre.xml
diff -u phpdoc/it/functions/pcre.xml:1.7 phpdoc/it/functions/pcre.xml:1.8
--- phpdoc/it/functions/pcre.xml:1.7Thu Mar 21 05:48:26 2002
+++ phpdoc/it/functions/pcre.xmlMon Apr  1 10:52:03 2002
@@ -1,5 +1,5 @@
 ?xml version=1.0 encoding=iso-8859-1?
-!-- EN-Revision: 1.76 Maintainer: darvin  Status: ready --
+!-- EN-Revision: 1.76 Maintainer: darvina Status: ready --
 reference id=ref.pcre
   titleFunzioni per le espressioni regolari (Perl compatibili)/title
   titleabbrevPCRE/titleabbrev   
Index: phpdoc/it/functions/snmp.xml
diff -u phpdoc/it/functions/snmp.xml:1.6 phpdoc/it/functions/snmp.xml:1.7
--- 

[PHP-DOC] cvs: phpdoc /ro/functions var.xml

2002-04-01 Thread Adrian Ciutureanu

adu Mon Apr  1 11:00:37 2002 EDT

  Modified files:  
/phpdoc/ro/functionsvar.xml 
  Log:
  Reformated PHP code examples according to
  http://cvs.php.net/co.php/phpdoc/RFC/coding_standards?r=1.3
  and corrected some translation errors.
  

Index: phpdoc/ro/functions/var.xml
diff -u phpdoc/ro/functions/var.xml:1.2 phpdoc/ro/functions/var.xml:1.3
--- phpdoc/ro/functions/var.xml:1.2 Mon Apr  1 02:03:49 2002
+++ phpdoc/ro/functions/var.xml Mon Apr  1 11:00:36 2002
 -1,5 +1,5 
 ?xml version=1.0 encoding=iso-8859-2?
-!-- $Revision: 1.2 $ --
+!-- $Revision: 1.3 $ --
  reference id=ref.variables
   titleVariabile/title
   titleabbrevVariabile/titleabbrev
 -59,6 +59,7 
  informalexample
   programlisting role=php
 ![CDATA[
+?php
 $var = 0;
 
 if (empty($var)) {  // este evaluatã ca TRUE
 -68,7 +69,7 
 if (!isset($var)) { // este evaluatã ca FALSE
 echo '$var nu este definitã';
 }
-]]
+?]]
   /programlisting
  /informalexample
 
 -107,9 +108,11 
 informalexample
   programlisting role=php
 ![CDATA[
+?php
 $var = '122.34343Gigi';
 $float_value_of_var = floatval ($var);
 print $float_value_of_var; // afiºeazã 122.34343
+?
 ]]
   /programlisting
  /informalexample
 -227,6 +230,7 
  informalexample
   programlisting role=php
 ![CDATA[
+?php
 $b = array(1, 1, 2, 3, 5, 8);
 
 $arr = get_defined_vars();
 -246,12 +250,13 
 
 // afiºeazã toate cheile tablourilor disponibile
 print_r(array_keys(get_defined_vars()));
+?
 ]]
   /programlisting
  /informalexample
 /para
 para
- Mai consultaþi functionget_defined_functions/function and
+ Mai consultaþi functionget_defined_functions/function ºi
  functionget_defined_constants/function.
 /para
/refsect1
 -277,6 +282,7 
  informalexample
   programlisting role=php
 ![CDATA[
+?php
 $c = mysql_connect();
 echo get_resource_type($c) . \n;
 // afiºeazã: mysql link
 -288,6 +294,7 
 $doc = new_xmldoc(1.0);
 echo get_resource_type($doc-doc) . \n;
 // afiºeazã: domxml document
+?
 ]]
   /programlisting
  /informalexample
 -316,9 +323,9 
 simpara
  Folosind parametrul parametertypes/parameter
  se poate specifica ce variabile sã fie importate. Se pot folosi caracterele
- 'G', 'P' and 'C' pentru variabile GET, POST, respectiv Cookie.
+ 'G', 'P' ºi 'C' pentru variabile GET, POST, respectiv Cookie.
  Aceste caractere nu sunt cu majuscule nesemnificative, adicã
- se poate folosi ºi o combinaþie a caracterelor 'g', 'p' and 'c'.
+ se poate folosi ºi o combinaþie a caracterelor 'g', 'p' ºi 'c'.
  POST include ºi informaþiile despre fiºiere încãrcate.
  De notat cã ordinea în care sunt scrie caracterele este importantã.
  Dacã se foloseºte combinaþia gp, variabilele POST vor suprascrie
 -337,9 +344,11 
 informalexample
  programlisting role=php
 ![CDATA[
+?php
 // vor fi importate variabilele GET ºi POST
 // cu prefixul rvar_
 import_request_variables(gP, rvar_);
+?
 ]]
  /programlisting
 /informalexample
 -703,6 +712,7 
 !-- TODO: better example, this one can be quite misleading for unexperienced
programmers.  --
 ![CDATA[
+?php
 function show_var($var) {
 if (is_scalar($var)) {
 echo $var;
 -726,6 +736,7 
 //   [2]=
 //   string(10) ferredoxin
 // }
+?
 ]]
   /programlisting
  /informalexample
 -746,7 +757,7 
  functionis_real/function,
  functionis_string/function,
  functionis_object/function,
- functionis_array/function, and
+ functionis_array/function ºi
  functionis_integer/function.
 /para
/refsect1
 -866,9 +877,10 
  informalexample
   programlisting role=php
 ![CDATA[
+?php
 $a = array ('a' = 'mãr', 'b' = 'parã', 'c' = array ('x','y','z'));
-print_r ($a);
-/pre
+print_r($a);
+?
 ]]
   /programlisting
  /informalexample
 -954,20 +966,21 
   titleExemplu pentru funcþia functionserialize/function/title
   programlisting role=php
 ![CDATA[
+?php
 // $session_data conþine un tablou multi-dimensional cu informaþii
 // ale sesiunii pentru utilizatorul curent
 // se foloseºte serialize() pentru a stoca acest tablou
 // intr-o bazã de date la încheierea cererii
 
-$conn = odbc_connect (webdb, php, chicken);
-$stmt = odbc_prepare ($conn,
-  UPDATE sessions SET data = ? WHERE id = ?);
+$conn = odbc_connect(webdb, php, chicken);
+$stmt = odbc_prepare($conn,
+UPDATE sessions SET data = ? WHERE id = ?);
 $sqldata = array (serialize($session_data), $PHP_AUTH_USER);
-if (!odbc_execute ($stmt, $sqldata)) {
+if (!odbc_execute($stmt, $sqldata)) {
 $stmt = odbc_prepare($conn,
- INSERT INTO sessions (id, data) VALUES(?, ?));
+INSERT INTO sessions (id, data) VALUES(?, ?));
 if (!odbc_execute($stmt, $sqldata)) {
-/* ceva nu a funcþionat cum trebuie */
+// ceva nu a funcþionat cum trebuie
 }
 }
 ]]
 -1046,11 +1059,13 
   titleExemplu pentru funcþia 

[PHP-DOC] cvs: phpdoc /nl bookinfo.xml

2002-04-01 Thread Derick Rethans

derick  Mon Apr  1 11:31:14 2002 EDT

  Modified files:  
/phpdoc/nl  bookinfo.xml 
  Log:
  - Update to version 1.26
  
  
Index: phpdoc/nl/bookinfo.xml
diff -u phpdoc/nl/bookinfo.xml:1.14 phpdoc/nl/bookinfo.xml:1.15
--- phpdoc/nl/bookinfo.xml:1.14 Tue Mar 26 10:57:15 2002
+++ phpdoc/nl/bookinfo.xml  Mon Apr  1 11:31:13 2002
 -1,5 +1,5 
 ?xml version=1.0 encoding=iso-8859-1?
-!-- EN-Revision: 1.11 Maintainer: derick Status: ready --
+!-- EN-Revision: 1.26 Maintainer: derick Status: ready --
  bookinfo id=bookinfo
   authorgroup id=authors
 
 -84,6 +84,13 
 Software Foundation; versie 2 van de License, of (naar keuze)
 elke latere versie is van toepassing.
/simpara
+   simpara
+   Het 'Extending PHP 4.0' gedeelte van deze handleiding is copyright copy;
+   2000 by Zend Technologies, Ltd. Deze teksten mogen uitsluitend onder de
+   termen en comndities, zoals die zijn beschreven in de Open Publication
+   License, v1.0 of later, worden gedistribueerd. (De laatste versie is op het
+   moment verkrijgbaar via ulink url=url.opl;url.opl;/ulink).
+   /simpara
   /legalnotice
 
  /bookinfo
 -104,4 +111,7 
 sgml-local-catalogs:nil
 sgml-local-ecat-files:nil
 End:
+vim600: syn=xml fen fdm=syntax fdl=2 si
+vim: et tw=78 syn=sgml
+vi: ts=1 sw=1
 --





[PHP-DOC] cvs: phpdoc /nl/appendices reserved.xml

2002-04-01 Thread Derick Rethans

derick  Mon Apr  1 11:57:26 2002 EDT

  Removed files:   
/phpdoc/nl/appendices   reserved.xml 
  Log:
  - Remove totally outdated file
  
  





[PHP-DOC] cvs: phpdoc /it/functions session.xml

2002-04-01 Thread Simone Cortesi

cortesi Mon Apr  1 11:57:40 2002 EDT

  Modified files:  
/phpdoc/it/functionssession.xml 
  Log:
  first work of a new translator: penzo
  

Index: phpdoc/it/functions/session.xml
diff -u /dev/null phpdoc/it/functions/session.xml:1.10
--- /dev/null   Mon Apr  1 11:57:40 2002
+++ phpdoc/it/functions/session.xml Mon Apr  1 11:57:40 2002
 -0,0 +1,1265 
+?xml version=1.0 encoding=iso-8859-1?
+!-- EN-Revision: 1.83 Maintainer: penzo Status: ready --
+ reference id=ref.session
+  titleFunzioni di gestione della sessione/title
+  titleabbrevSessioni/titleabbrev
+   
+  partintro
+   para
+Il supporto delle sessioni in PHP consiste nel mantenere certi dati
+attraverso accessi successivi.Questo vi dà la capacità di costruire 
+applicazioni più consone alle vostre esigenze e di accrescere le qualità 
+del vostro sito web.
+   /para
+   para
+Se avete dimestichezza con la gestione delle sessioni di PHPLIB, noterete
+che alcuni concetti sono simili al supporto dele sessioni in PHP.
+   /para
+   para
+Al visitatore che accede al vostro sito web viene assegnato un id unico,
+il cosidetto id di sessione.Questo viene registrato in un cookie sul 
+lato utente o è propagato tramite l'URL.
+   /para
+   para
+Il supporto delle sessioni vi permette di registrare numeri arbitrari di 
+variabili che vengono preservate secondo richiesta.Quando un visitatore 
+accede al vostro sito, PHP controllerà automaticamente (se session.auto_start è
+settato a 1) o su vostra richiesta (esplicitamente tramite 
+functionsession_start/function o implicitamente tramite
+functionsession_register/function) se uno specifico id di 
+sessione sia stato inviato con la richiesta.In questo caso , il 
+precedente ambiente salvato viene ricreato.
+   /para
+   para
+Tutte le variabili registrate vengono serializzate dopo che la richiesta
+è finita.Le variabili registrate che non sono definite vengono marcate
+come indefinite. All'accesso successivo, queste non vengono definite 
+dal modulo di sessione fino a quando l'utente non le definisce più tardi.
+   /para
+   para
+La configurazione di link
+linkend=ini.track-varsliteraltrack_vars/literal/link e
+link
+linkend=ini.register-globalsliteralregister_globals/literal/link
+influenza come le variabili di sessione vengono memorizzate una e più volte.
+   /para
+
+   note
+para
+ In PHP 4.0.3, link
+ linkend=ini.track-varsliteraltrack_vars/literal/link è sempre
+ attiva.
+/para
+   /note
+   note
+para
+ In PHP 4.1.0, varname$_SESSION/varname è disponibile come variabile
+ globale proprio come varname$_POST/varname,
+ varname$_GET/varname, varname$_REQUEST/varname e così via.
+ varname$_SESSION/varname non è sempre globale come
+ varname$HTTP_SESSION_VARS/varname. Per questo motivo, il termine
+ literalglobal/literal non dovrebbe essere usato per
+ varname$_SESSION/varname.
+/para
+   /note
+
+   para
+Se link
+linkend=ini.track-varsliteraltrack_vars/literal/link è 
+attiva e link
+linkend=ini.register-globalsliteralregister_globals/literal/link
+non è attiva, solo i membri dell'array associativo globale
+varname$HTTP_SESSION_VARS/varname possono essere registrati come 
+variabili di sessione.
+Le variabili di sessione ripristinate saranno disponibili
+nell'array varname$HTTP_SESSION_VARS/varname.
+  example
+ title
+  Registrare una variabile con link
+  linkend=ini.track-varsliteraltrack_vars/literal/link
+  attiva
+ /title
+ programlisting role=php
+![CDATA[
+?php
+if (isset($HTTP_SESSION_VARS['count'])) {
+   $HTTP_SESSION_VARS['count']++;
+}
+else {
+   $HTTP_SESSION_VARS['count'] = 0;
+}
+?
+]]
+ /programlisting
+/example
+   /para
+   para
+L'uso di varname$_SESSION/varname (o
+varname$HTTP_SESSION_VARS/varname con PHP 4.0.6 o precedente) è
+raccomandato per sicurezza e leegibilità del codice.Con
+varname$_SESSION/varname o
+varname$HTTP_SESSION_VARS/varname, non c'è bisogno di usare le funzioni
+session_register()/session_unregister()/session_is_registered().
+Gli utenti possono accedere alla variabile di sessione come a una 
+variabile normale.
+example
+ title
+  Registrare una variabile con $_SESSION.
+ /title
+ programlisting role=php
+![CDATA[
+?php
+// Use $HTTP_SESSION_VARS with PHP 4.0.6 or less
+if (!isset($_SESSION['count'])) {
+$_SESSION['count'] = 0;
+} else {
+$_SESSION['count']++;
+}
+?
+]]
+ /programlisting
+/example
+example
+ title
+  Resettare una variabile con $_SESSION.
+ /title
+ programlisting role=php
+![CDATA[
+?php
+// Use $HTTP_SESSION_VARS with PHP 4.0.6 or less
+unset($_SESSION['count']);
+
+?
+]]
+ /programlisting
+/example
+   /para
+   para
+Se link
+

[PHP-DOC] cvs: phpdoc /nl/appendices debugger.xml

2002-04-01 Thread Derick Rethans

derick  Mon Apr  1 11:57:49 2002 EDT

  Modified files:  
/phpdoc/nl/appendices   debugger.xml 
  Log:
  - Getting in sync
  
  

Index: phpdoc/nl/appendices/debugger.xml
diff -u phpdoc/nl/appendices/debugger.xml:1.9 phpdoc/nl/appendices/debugger.xml:1.10
--- phpdoc/nl/appendices/debugger.xml:1.9   Tue Mar 26 10:52:34 2002
+++ phpdoc/nl/appendices/debugger.xml   Mon Apr  1 11:57:49 2002
 -1,15 +1,19 
 ?xml version=1.0 encoding=iso-8859-1?
-!-- EN-Revision: 1.7 Maintainer: derick Status: ready --
+!-- EN-Revision: 1.20 Maintainer: derick Status: ready --
  appendix id=debugger
   titleDe PHP Debugger/title
 
   sect1 id=debugger-about
-   titleAbout the debugger/title
+   titleOver de debuggerr/title
simpara
-PHP 3 includes support for a network-based debugger.
+PHP 3 biedt ondersteuning voor een netwerk-gebaseerde debugger.
/simpara
simpara
-PHP 4 does not yet have a similar debugging facility.
+PHP 4 biedt geen ondersteuning voor een interne debugger. U kunt natuurlijk
+een van de extern debuggers gebruiken.  De ulink url=url.zend.ide;Zend
+IDE/ulink omhelst een debugger, maar er zijn ook een aantal gratis debug
+extensies, zoals DBG (ulink url=url.dbg;url.dbg;/ulink) of de
+ulink url=url.apd;Advanced PHP Debugger/ulink (APD).
/simpara
   /sect1
 
 -71,10 +75,10 
 Elke regel heeft het volgende formaat:
 informalexample
  literallayout
-replaceabledate/replaceable replaceabletime/replaceable
-replaceablehost/replaceable(replaceablepid/replaceable)
-replaceabletype/replaceable:
-replaceablemessage-data/replaceable
+  replaceabledate/replaceable replaceabletime/replaceable
+  replaceablehost/replaceable(replaceablepid/replaceable)
+  replaceabletype/replaceable:
+  replaceablemessage-data/replaceable
  /literallayout
 /informalexample
 variablelist
 -82,8 +86,8 
   termreplaceabledate/replaceable/term
   listitem
simpara
-   Datum in het ISO 8601 formaat
-   
(replaceable/replaceable-replaceablemm/replaceable-replaceabledd/replaceable)
+Datum in het ISO 8601 formaat
+
+(replaceable/replaceable-replaceablemm/replaceable-replaceabledd/replaceable)
/simpara
   /listitem
  /varlistentry
 -91,7 +95,7 
   termreplaceabletime/replaceable/term
   listitem
simparaTijd inclusief microseconden:
-   
replaceablehh/replaceable:replaceablemm/replaceable:replaceableuu/replaceable
+   
+replaceablehh/replaceable:replaceablemm/replaceable:replaceableuu/replaceable
/simpara
   /listitem
  /varlistentry
 -99,7 +103,7 
   termreplaceablehost/replaceable/term
   listitem
simpara
-   DNS naam of IP addres van de host waarop het script errors genereerd.
+DNS naam of IP addres van de host waarop het script errors genereerd.
/simpara
   /listitem
  /varlistentry
 -107,8 +111,8 
   termreplaceablepid/replaceable/term
   listitem
simpara
-   PID (process id) op de replaceablehost/replaceable van het
-   proces dat het PHP script dat de fout genereerde veroorzaakte.
+PID (process id) op de replaceablehost/replaceable van het proces
+dat het PHP script dat de fout genereerde veroorzaakte.
/simpara
   /listitem
  /varlistentry
 -116,71 +120,71 
   termreplaceabletype/replaceable/term
   listitem
para
-   Regeltype. Dit verteld het ontvangende programma over wat
-   er komen gaat:
-   table
-titleDebugger Regel Types/title
-tgroup cols=2
- thead
-  row
-   entryNaam/entry
-   entryOmschrijving/entry
-  /row
- /thead
- tbody
-  row
-   entryliteralstart/literal/entry 
-   entry
-Vertelt het ontvangende programma dat het debugger bericht
-hier begint. De inhoud van de
-replaceabledata/replaceable hangt samen met het type van
-het fout bericht die hieronder zijn weergegeven.
-   /entry
-  /row
-  row
-   entryliteralmessage/literal/entry
-   entryHet foutbericht van PHP./entry
-  /row
-  row
-   entryliterallocation/literal/entry
-   entry
-Bestandsnaam en regelnummer waar de fout optrad. De eerste
-literallocation/literal regel bevat altijd de
-top-level locatie.
-replaceabledata/replaceable bevat
-
literalreplaceablebestand/replaceable:replaceableregel/replaceable/literal.
-Er is altijd een literallocation/literal regel na
-een literalmessage/literal en na elke
-literalfunction/literal.
-   /entry
-  /row
-  row
-   entry
-literalframes/literal/entry entryHet aantal frames
-in de te volgen stack dump. Als er vier frame 

[PHP-DOC] cvs: phpdoc /it translation.xml

2002-04-01 Thread Simone Cortesi

cortesi Mon Apr  1 11:58:25 2002 EDT

  Modified files:  
/phpdoc/it  translation.xml 
  Log:
  removing done WIP
  
Index: phpdoc/it/translation.xml
diff -u phpdoc/it/translation.xml:1.59 phpdoc/it/translation.xml:1.60
--- phpdoc/it/translation.xml:1.59  Mon Apr  1 10:52:02 2002
+++ phpdoc/it/translation.xml   Mon Apr  1 11:58:25 2002
 -56,7 +56,6 
   file name=functions/zip.xml   person=cortesi  type=offline /
   file name=language/functions.xml  person=spisto   type=offline 
revision=1.26 /
   file name=functions/errorfunc.xml person=pulici   type=offline 
revision=1.26 date=20/03/2002 /
-  file name=functions/session.xml   person=penzotype=offline 
revision=1.83 date=20/03/2002 /
   file name=functions/dba.xml   person=calandra type=offline 
date=19/03/2002 /
   file name=functions/dbm.xml   person=calandra type=offline 
date=19/03/2002 /
   file name=functions/dbplus.xmlperson=calandra type=offline 
date=19/03/2002 /





[PHP-DOC] cvs: phpdoc /nl translation.xml /nl/chapters intro.xml

2002-04-01 Thread Derick Rethans

derick  Mon Apr  1 12:26:30 2002 EDT

  Modified files:  
/phpdoc/nl  translation.xml 
/phpdoc/nl/chapters intro.xml 
  Log:
  - Updateing status
  
  

Index: phpdoc/nl/translation.xml
diff -u phpdoc/nl/translation.xml:1.2 phpdoc/nl/translation.xml:1.3
--- phpdoc/nl/translation.xml:1.2   Tue Mar 26 10:57:15 2002
+++ phpdoc/nl/translation.xml   Mon Apr  1 12:26:30 2002
 -14,6 +14,7 
  /translators
  
  work-in-progress
+  file name=chapters/intro.xml person=derick   type=offline   
+revision=1.32 date=01/04/2002 /
  /work-in-progress
 
 /translation
Index: phpdoc/nl/chapters/intro.xml
diff -u phpdoc/nl/chapters/intro.xml:1.9 phpdoc/nl/chapters/intro.xml:1.10
--- phpdoc/nl/chapters/intro.xml:1.9Tue Mar 26 10:53:33 2002
+++ phpdoc/nl/chapters/intro.xmlMon Apr  1 12:26:30 2002
 -1,38 +1,41 
 ?xml version=1.0 encoding=iso-8859-1?
-!-- EN-Revision: 1.13 Maintainer: derick Status: ready --
+!-- EN-Revision: 1.32 Maintainer: derick Status: partial --
  chapter id=introduction
   titleIntroduction/title
 
   sect1 id=intro-whatis
titleWat is PHP?/title
simpara
-PHP (officieel PHP: Hypertext Preprocessor) is een server-side
-HTML-embedded scripting taal.
+PHP (officieel PHP: Hypertext Preprocessor) is een veel gebruikte Open
+Source general-purpose scripting taal die speciaal is uitgerust voor Web
+development, en kan worden embed in HTML.
/simpara
para
-Dat was een simpel antwoord, maar wat wordt er mee bedoeld:
+Dat was een simpel antwoord, maar wat wordt er mee bedoeld? Een voorbeeld:
/para
para
 example
  titleEen introducerend voorbeeld/title
  programlisting role=php
-lt;html
-lt;head
-lt;titleVoorbeeldlt;/title
-lt;/head
-lt;body
-
-lt;?php 
-echo Hallo, ik ben een PHP script!; 
-?gt;
-
-lt;/body
-lt;/html
+![CDATA[
+html
+head
+titleVoorbeeld/title
+/head
+body
+
+?php 
+echo Hallo! Ik ben een PHP script!; 
+?
+
+/body
+/html
+]]
  /programlisting
 /example
/para
para
-Zie je hoe verschillend dit is van een CGI script geschreven in andere
+Zie je hoe verschillend dit is van een script geschreven in andere
 talen zoals Perl of C -- in plaats van een programma te schrijven met
 veel commando's om HTML te laten zien, kun je een HTML script scrhijven
 met ingebouwde code die iets doen (in dit geval een stuk tekst laten
 -51,14 +54,103 
 er is geen enkele manier dat gebruikers merken dat er ook maar iets
 gaande is.
/para
+   para
+De mooiste dingen van PHP is dat het relatief eenvoudig is voor een
+beginner, maar dat het nog steeds krachtig is voor de professionele
+gebruiker. U hoeft niet bang te zijn van de enorme lijst functies die PHP
+heeft. U kunt eenvoudig instappen, en in een korte tijd simpele scripts
+schrijven.
+   /para
+   para
+Alhoewel PHP is gefocussed overe server-side scripting kunt u er nog veel
+meer mee doen. Lees verder, en leer meer in de sectie link
+linkend=intro-whatcandoWat kan PHP voor u betekenen?/link.
+   /para
   /sect1
 
   sect1 id=intro-whatcando
-   titleWelke mogelijkheden heeft PHP?/title
+   titleWat kan PHP voor u betekenen?/title
para
-Als basis kan PHP alles doen wat elk ander CGI script kan doen,
-zoals het ophalen van form gegevens, het genereren van dynamisch
-pagina's of het sturen en ontvangen van cookies.
+Alles. PHP is vooral bedoeld voor server-sie scripting, dus u kunt alles
+doen wat elk ander CGI script kan doen, zoals het ophalen van form
+gegevens, het genereren van dynamisch pagina's of het sturen en ontvangen
+van cookies. Maar PHP kan veel meer betekenen.
+   /para
+   para
+There are three main fields where PHP scripts are used.
+itemizedlist
+ listitem
+  simpara
+   Server-side scripting. This is the most traditional
+   and main target field for PHP. You need three things
+   to make this work. The PHP parser (CGI or server
+   module), a webserver and a web browser. You need to
+   run the webserver, with a connected PHP installation.
+   You can access the PHP program output with a web browser,
+   viewing the PHP page through the server. See the
+   link linkend=installationinstallation instructions/link
+   section for more information.
+  /simpara
+ /listitem
+ listitem
+  simpara
+   Command line scripting. You can make a PHP script
+   to run it without any server or browser.
+   You only need the PHP parser to use it this way.
+   This type of usage is ideal for scripts regularly
+   executed using cron (a task scheduler on Linux and Unix
+   systems) or a task scheduler on Windows.  These scripts
+   can also be used for simple text processing tasks. See the
+   section about link linkend=commandlineCommand line
+   

[PHP-DOC] cvs: phpdoc /en/chapters config.xml

2002-04-01 Thread Paul Dorneanu

spooky  Mon Apr  1 12:06:02 2002 EDT

  Modified files:  
/phpdoc/en/chapters config.xml 
  Log:
  a very small correction
  
  
Index: phpdoc/en/chapters/config.xml
diff -u phpdoc/en/chapters/config.xml:1.44 phpdoc/en/chapters/config.xml:1.45
--- phpdoc/en/chapters/config.xml:1.44  Fri Mar 29 18:25:46 2002
+++ phpdoc/en/chapters/config.xml   Mon Apr  1 12:06:02 2002
 -1,5 +1,5 
 ?xml version=1.0 encoding=iso-8859-1?
-!-- $Revision: 1.44 $ --
+!-- $Revision: 1.45 $ --
  chapter id=configuration
   titleConfiguration/title
 
 -122,7 +122,7 
simpara
 You can view the settings of the configuration values in
 the output of functionphpinfo/function. You can also
-access the values of individial configuration settings using
+access the values of individual configuration settings using
 functionget_cfg_var/function.
/simpara

 -137,18 +137,24 
/term
listitem
 para
- This option enables the URL-aware fopen wrappers that enable accessing URL 
object
+ This option enables the URL-aware fopen wrappers that enable 
+accessing URL object
  like files. Default wrappers are provided for the access of 
  link linkend=features.remote-filesremote files/link
- using the ftp or http protocol, some extensions like zlib may register 
additional wrappers. 
+ using the ftp or http protocol, some extensions like zlib may 
+register additional wrappers. 
 /para
 
 note
  para
-  This option was introduced immediately after the release of version 4.0.3.
-  For versions up to and including 4.0.3 you can only disable this feature at
+  This option was introduced immediately after the release of version 
+4.0.3.
+  For versions up to and including 4.0.3 you can only disable this 
+feature at
   compile time by using the configuration switch 
-  link 
linkend=install.configure.disable-url-fopen-wrapperparameter--disable-url-fopen-wrapper/parameter/link.
+  link 
+linkend=install.configure.disable-url-fopen-wrapperparameter--d
+isable-url-fopen-wrapper/parameter/link.
  /para
 /note
 
 -165,7 +171,8 
  Enables the use of ASP-like lt;% %gt; tags in addition to
  the usual lt;?php ?gt; tags. This includes the
  variable-value printing shorthand of lt;%= $value %gt;. For 
- more information, see link linkend=language.basic-syntax.phpmodeEscaping 
from HTML/link.
+ more information, see link 
+linkend=language.basic-syntax.phpmodeEscaping from HTML/link.
 /simpara
 
 note
 -187,7 +194,8 
  called with the functioninclude/function function, so
  link linkend=ini.include-pathinclude_path/link is used./para
 para
- The special value systemitem class=constantnone/systemitem disables 
auto-appending.
+ The special value systemitem class=constantnone/systemitem 
+disables auto-appending.
  note
   simpara
If the script is terminated with functionexit/function,
 -208,7 +216,8 
  called with the functioninclude/function function, so
  link linkend=ini.include-pathinclude_path/link is used./para
 para
- The special value systemitem class=constantnone/systemitem disables 
auto-prepending./para
+ The special value systemitem class=constantnone/systemitem 
+disables auto-prepending./para
/listitem
   /varlistentry
 
 -244,7 +253,8 
listitem
 para
  PHP's root directory on the server.  Only used if
- non-empty.  If PHP is configured with link linkend=ini.safe-modesafe 
mode/link, no files outside
+ non-empty.  If PHP is configured with link 
+linkend=ini.safe-modesafe mode/link, no files outside
  this directory are served.
 /para
/listitem
 -421,7 +431,8 
  method variables with POST-method variables of the same name.
 /para
 para
- See also link linkend=ini.register-globalsregister_globals/link.
+ See also link 
+linkend=ini.register-globalsregister_globals/link.
 /para
/listitem
   /varlistentry
 -1535,7 +1546,8 
   /term
   listitem
para
-Handling of LONG fields. Specifies the number of bytes returned to variables.
+Handling of LONG fields. Specifies the number of bytes returned to 
+variables.
/para
   /listitem
  /varlistentry





[PHP-DOC] cvs: phpdoc /it/features images.xml

2002-04-01 Thread Simone Cortesi

cortesi Mon Apr  1 12:44:47 2002 EDT

  Modified files:  
/phpdoc/it/features images.xml 
  Log:
  updating to current EN
  
Index: phpdoc/it/features/images.xml
diff -u phpdoc/it/features/images.xml:1.8 phpdoc/it/features/images.xml:1.9
--- phpdoc/it/features/images.xml:1.8   Wed Feb 20 12:20:55 2002
+++ phpdoc/it/features/images.xml   Mon Apr  1 12:44:47 2002
 -1,5 +1,5 
 ?xml version=1.0 encoding=iso-8859-1?
-!-- EN-Revision: 1.15 Maintainer: cortesi Status: ready --
+!-- EN-Revision: 1.16 Maintainer: cortesi Status: ready --
  chapter id=features.images
   titleCreazione e manipolazione di immagini/title
 
 -22,7 +22,7 
 ?php
 Header(Content-type: image/png);
 $stringa=implode($argv, );
-$im = imageCreateFromPng(immagini/bottone1.png);
+$im = ImageCreateFromPng(immagini/bottone1.png);
 $arancio = ImageColorAllocate($im, 220, 210, 60);
 $px = (imagesx($im)-7.5*strlen($string))/2;
 ImageString($im,3,$px,9,$stringa,$arancio);





[PHP-DOC] Bug #16130 Updated: array_search does not return FALSE as documented

2002-04-01 Thread sniper

 ID:   16130
 Updated by:   [EMAIL PROTECTED]
 Reported By:  [EMAIL PROTECTED]
-Status:   Assigned
+Status:   Closed
 Bug Type: Documentation problem
 Operating System: Linux 2.4.12 / 2.4.17
 PHP Version:  4.1.2
 Assigned To:  philip


Previous Comments:


[2002-03-31 23:53:57] [EMAIL PROTECTED]

This behavoir has now been documented, thank you for the report.



[2002-03-18 02:27:56] [EMAIL PROTECTED]

Works for me with 4.3.0-dev too.

Derick



[2002-03-17 22:50:51] [EMAIL PROTECTED]

This bug was fixed by Jeroen on Oct 5, 2001 as stated under bug #13567.
 Assigning to self for a little more testing, this change took place in
4.2.0 and will be documented as such.  Good thing in PHP everyone uses
== :))

?php
  $return = array_search('sorry', array('foo','bar'));

  print '$return is type: '. gettype($return) .\n;
  if ($return === false) print \$return === false\n;
  if ($return === NULL)  print \$return === NULL\n;
  /*
X-Powered-By: PHP/4.2.1-dev (3-17)
 $return is type: boolean
 $return === false

X-Powered-By: PHP/4.1.2
 $return is type: NULL
 $return === NULL
  */
?



[2002-03-17 21:08:16] [EMAIL PROTECTED]

I am calling array_search.  I expect it to return FALSE if the needle
value is not in the haystack (as documented) -- it's not happening.

I searched the bug database and found this bug (#13567) reported for v.
4.0.5 and marked as closed, but the bug is still present in 4.1.2.

Script that demonstrates the problem:

$result = array_search( M, array( A, Z ) );

if ( $result === false ) {

  echo REALLY FALSE;

}

else {

  echo SOMETHING ELSE;

}


I expect the script to output REALLY FALSE, instead it outputs
SOMETHING ELSE.

Thanks.




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




[PHP-DOC] cvs: phpdoc /en/features remote-files.xml

2002-04-01 Thread Simone Cortesi

cortesi Mon Apr  1 12:49:16 2002 EDT

  Modified files:  
/phpdoc/en/features remote-files.xml 
  Log:
  be compliant a bit more to RFC 2606
  
Index: phpdoc/en/features/remote-files.xml
diff -u phpdoc/en/features/remote-files.xml:1.14 
phpdoc/en/features/remote-files.xml:1.15
--- phpdoc/en/features/remote-files.xml:1.14Thu Mar 28 12:16:38 2002
+++ phpdoc/en/features/remote-files.xml Mon Apr  1 12:49:16 2002
 -1,5 +1,5 
 ?xml version=1.0 encoding=iso-8859-1?
-!-- $Revision: 1.14 $ --
+!-- $Revision: 1.15 $ --
  chapter id=features.remote-files
   titleUsing remote files/title
 
 -33,7 +33,7 
 programlisting role=php
 ![CDATA[
 ?php
-$file = fopen (http://www.php.net/;, r);
+$file = fopen (http://www.example.com/;, r);
 if (!$file) {
 echo pUnable to open remote file.\n;
 exit;
 -67,7 +67,7 
 programlisting role=php
 ![CDATA[
 ?php
-$file = fopen (ftp://ftp.php.net/incoming/outputfile;, w);
+$file = fopen (ftp://ftp.example.com/incoming/outputfile;, w);
 if (!$file) {
 echo pUnable to open remote file for writing.\n;
 exit;





[PHP-DOC] cvs: phpdoc /it/features remote-files.xml

2002-04-01 Thread Simone Cortesi

cortesi Mon Apr  1 12:50:34 2002 EDT

  Modified files:  
/phpdoc/it/features remote-files.xml 
  Log:
  updating to EN 1.15
  
Index: phpdoc/it/features/remote-files.xml
diff -u phpdoc/it/features/remote-files.xml:1.9 
phpdoc/it/features/remote-files.xml:1.10
--- phpdoc/it/features/remote-files.xml:1.9 Mon Apr  1 12:42:06 2002
+++ phpdoc/it/features/remote-files.xml Mon Apr  1 12:50:33 2002
@@ -1,5 +1,5 @@
 ?xml version=1.0 encoding=iso-8859-1?
-!-- EN-Revision: 1.14 Maintainer: cortesi Status: ready --
+!-- EN-Revision: 1.15 Maintainer: cortesi Status: ready --
 !-- CREDITS: marco --
  chapter id=features.remote-files
   titleUtilizzo di file remoti/title
@@ -35,7 +35,7 @@
 programlisting role=php
 ![CDATA[
 ?php
-$file = fopen (http://www.php.net/;, r);
+$file = fopen (http://www.example.com/;, r);
 if (!$file) {
 echo pImpossibile aprire il file remoto.\n;
 exit;
@@ -59,7 +59,7 @@
si connette ha le autorizzazioni necessarie, e il file non egrave; giagrave; 
presente.
Per connettersi con un utenti specifico si ha bisogno di specificare lo username
(e la relativa password) dentro l'URL in questo modo:
-   'ftp://user:[EMAIL PROTECTED]/dir/del/file'. (Si puograve; usare lo stesso 
+   'ftp://user:[EMAIL PROTECTED]/directory/del/file'. (Si puograve; usare lo 
+stesso 
tipo di sintassi per accedere a file via HTTP quando 
richiedono autenticazione).
   /para
@@ -69,7 +69,7 @@
 programlisting role=php
 ![CDATA[
 ?php
-$file = fopen (ftp://ftp.php.net/incoming/outputfile;, w);
+$file = fopen (ftp://ftp.example.com/incoming/outputfile;, w);
 if (!$file) {
 echo pImpossibile aprire il file remoto in scrittura.\n;
 exit;





[PHP-DOC] cvs: phpdoc /nl/functions datetime.xml

2002-04-01 Thread Derick Rethans

derick  Mon Apr  1 12:50:46 2002 EDT

  Modified files:  
/phpdoc/nl/functionsdatetime.xml 
  Log:
  - In sync
  
  

Index: phpdoc/nl/functions/datetime.xml
diff -u phpdoc/nl/functions/datetime.xml:1.12 phpdoc/nl/functions/datetime.xml:1.13
--- phpdoc/nl/functions/datetime.xml:1.12   Tue Mar 26 10:57:15 2002
+++ phpdoc/nl/functions/datetime.xmlMon Apr  1 12:50:46 2002
 -1,5 +1,5 
 ?xml version=1.0 encoding=iso-8859-1?
-!-- EN-Revision: 1.30 Maintainer: leendert Status: ready --
+!-- EN-Revision: 1.69 Maintainer: derick Status: ready --
  reference id=ref.datetime
   titleDate en Time functies/title
   titleabbrevDate/time/titleabbrev
 -57,9 +57,7 
 methodsynopsis
  typestring/typemethodnamedate/methodname
  methodparamtypestring/typeparameterformat/parameter/methodparam
- methodparam choice=opttypeint/typeparameter
-   timestamp
-  /parameter/methodparam
+ methodparam 
+choice=opttypeint/typeparametertimestamp/parameter/methodparam
 /methodsynopsis
 para
  Geeft een geformatteerde string volgens de gegeven format string
 -67,10 +65,10 
  local time als geen timestamp gegeven is.
  note  
   para  
-   The valid range of a timestamp is typically from Fri, 13 Dec 1901
-   20:45:54 GMT to Tue, 19 Jan 2038 03:14:07 GMT. (These are  
-   the dates that correspond to the minimum and maximum values for  
-   a 32-bit signed integer.)
+   De geldige reeks van timestamps is normaal van vrijdag 13 Dec 1901
+   20:45:54 GMT tot Dinsdag 19 Jan 2038 03:14:07 GMT. (Dit zijn de
+   tijdstippen die overeenkomen met de minimale en maximale waarden voor
+   een 32-bits signed integer).
   /para  
   para
Om een timestamp te genereren uit een string representatie van een datum
 -194,8 +192,8 
   /listitem
   listitem
simpara
-S - Engelse ordinale suffix voor de dag van de maand, textueel, 2 karakters; 
dus quot;thquot;,
-quot;ndquot;
+S - Engelse ordinale suffix voor de dag van de maand, textueel, 2
+karakters; dus quot;thquot;, quot;ndquot;
/simpara
   /listitem
   listitem
 -251,12 +249,14 
  Niet-herkende karakters in de format string zullen afgedrukt
  worden zoals ze zijn. De quot;Zquot; format zal altijd quot;0quot; 
retourneren
  wanneer gebruik wordt gemaakt van functiongmdate/function.
+/para
+para
  example
   titlefunctiondate/function voorbeeld/title
   programlisting role=php
 ![CDATA[  
-print (date (quot;l dS of F Y h:i:s Aquot;));
-print (quot;July 1, 2000 is on a quot; . date (quot;lquot;, 
mktime(0,0,0,7,1,2000)));
+print (date (l dS of F Y h:i:s A));
+print (July 1, 2000 is op een  . date (l, mktime(0,0,0,7,1,2000)));
 ]]  
   /programlisting
  /example
 -270,7 +270,7 
   titleEscapen van characters in functiondate/function/title  
programlisting role=php  
 ![CDATA[  
-  echo date(l \\t\h\e jS); // prints something like 'Saturday the 8th'  
+  echo date(l \\t\h\e jS); // toont zoiets als 'Saturday the 8th'  
 ]]  
   /programlisting
  /example
 -282,11 +282,11 
   title
functiondate/function en functionmktime/function voorbeeld
   /title
-  programlisting
+  programlisting role=php
 ![CDATA[  
-$tomorrow  = mktime (0,0,0,date(quot;mquot;)  
,date(quot;dquot;)+1,date(quot;Yquot;));
-$lastmonth = mktime (0,0,0,date(quot;mquot;)-1,date(quot;dquot;),  
date(quot;Yquot;));
-$nextyear  = mktime (0,0,0,date(quot;mquot;),  date(quot;dquot;),  
date(quot;Yquot;)+1);
+$tomorrow  = mktime (0,0,0,date(m)  ,date(d)+1,date(Y));
+$lastmonth = mktime (0,0,0,date(m)-1,date(d),  date(Y));
+$nextyear  = mktime (0,0,0,date(m),  date(d),  date(Y)+1);
 ]] 
   /programlisting
  /example
 -317,7 +317,7 
 $today = date('h-i-s, j-m-y, it is w Day z ');  // 05-16-17, 10-03-01, 1631 1618 6 
Fripm01
 $today = date('\i\t \i\s \t\h\e jS \d\a\y.');   // It is the 10th day.
 $today = date(D M j G:i:s T Y);   // Sat Mar 10 15:16:08 MST 2001
-$today = date('H:m:s \m \i\s\ \m\o\n\t\h'); // 17:03:17 m is month
+$today = date('H:m:s \m \i\s\ \m\a\a\n\d'); // 17:03:17 m is maand
 $today = date(H:i:s); // 17:16:17
 ]]
   /programlisting
 -411,11 +411,11 
   /title
   programlisting role=php
 ![CDATA[
-$today = getdate(); 
-$month = $today['month']; 
-$mday = $today['mday']; 
-$year = $today['year']; 
-echo $month $mday, $year;
+$vandaag = getdate(); 
+$maand = $vandaag['month']; 
+$mdag = $vandaag['mday']; 
+$jaar = $vandaag['year']; 
+echo $maand $mdag, $jaar;
 ]]
   /programlisting
  /example
 -486,8 +486,8 
   titlefunctiongmdate/function voorbeeld/title
   programlisting role=php
 ![CDATA[
-echo date (quot;M d Y H:i:squot;, mktime (0,0,0,1,1,1998));
-echo gmdate (quot;M d Y H:i:squot;, mktime (0,0,0,1,1,1998));
+echo date (M d Y H:i:s, mktime (0,0,0,1,1,1998));
+echo gmdate (M 

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

2002-04-01 Thread Sander Roobol

sander  Mon Apr  1 13:24:26 2002 EDT

  Modified files:  
/phpdoc/en/language oop.xml 
  Log:
  Added link from language.oop to ref.classobj.
  
  
Index: phpdoc/en/language/oop.xml
diff -u phpdoc/en/language/oop.xml:1.32 phpdoc/en/language/oop.xml:1.33
--- phpdoc/en/language/oop.xml:1.32 Wed Dec 12 15:47:39 2001
+++ phpdoc/en/language/oop.xml  Mon Apr  1 13:24:26 2002
 -1,5 +1,5 
 ?xml version=1.0 encoding=iso-8859-1?
-!-- $Revision: 1.32 $ --
+!-- $Revision: 1.33 $ --
  chapter id=language.oop
   titleClasses and Objects/title
 
 -190,6 +190,14 
 array' or 'add $num to the $artnr counter of the items array
 within the current object'.
/para
+
+   note
+para
+There are some nice functions to handle classes and objects. You might want
+to take a look at the link linkend=ref.classobjClass/Object
+Functions/link
+/para
+   /note
   /sect1
   
   sect1 id=keyword.extends





[PHP-DOC] Explanation of parse errors

2002-04-01 Thread Sander Roobol

Hello,

Various parts of the PHP language are represented internally by stuff 
like T_SR. PHP outputs identifiers like this one in parse errors, like 
Parse error: unexpected T_SR, expecting ',' or ';' in script.php on 
line 10.
You're supposed to know that T_SR means . For everybody who doesn't 
know that, I've made table with those identifiers, PHP-syntax and 
references to the appropriate places in the manual.

I've experienced some difficulties adding the section to the manual, so 
I would appreciate it if anyone could give me a hand with that.
I think it should be in the manual as an appendix, but if you don't 
agree with me, speak now or forever hold your peace ;)

For the curious, I've attached the XML-file.

Sander



parseerrors.xml.gz
Description: GNU Zip compressed data


Re: [PHP-DOC] cvs: phpdoc /en/chapters config.xml

2002-04-01 Thread Friedhelm Betz


Hi Mark,



 If someone wants to take a look, my proposal for layout:
 http://mysql.holliwell.de/ref.mysql.html, including the infos from
 config.xml. I don't just want to commit, maybe one of the more experienced

 Looks great. This is what I have in mind, too. Perhaps you should add
 a short installation instruction for MySQL, so all information you need
 to 
 use MySQL with PHP will be on one page.

 Mark

back from the family meeting for the easter days :-)
What Installation instructions do you have in mind (Complete list of configure options
?)
The part under Installation seems to be enough for me? Is
there/should there be more stuff?
Will the section  Complete list of configure options stay at the place
its now? Or should this be deleted too? The contents are under the
Installation part of the intro to mysql.xml.
Let me know. Thanks !

 Friedhelm




[PHP-DOC] cvs: phpdoc /it/functions dbm.xml

2002-04-01 Thread Simone Cortesi

cortesi Mon Apr  1 14:25:25 2002 EDT

  Modified files:  
/phpdoc/it/functionsdbm.xml 
  Log:
  adding translation by Mariano Calandra up to EN 1.17
  

Index: phpdoc/it/functions/dbm.xml
diff -u /dev/null phpdoc/it/functions/dbm.xml:1.6
--- /dev/null   Mon Apr  1 14:25:25 2002
+++ phpdoc/it/functions/dbm.xml Mon Apr  1 14:25:25 2002
 -0,0 +1,300 
+?xml version=1.0 encoding=iso-8859-1?
+!-- EN-Revision: 1.17 Maintainer: calandra Status: ready --
+ reference id=ref.dbm
+  titleFunzioni DBM/title
+  titleabbrevDBM/titleabbrev
+
+  partintro
+   simpara
+Questa funzioni consentono lo storage di records memorizzati 
+in un dbm-style database. Questo tipo di database (supportato da Berkeley DB, 
+GDBM, e qualche libreria di sistema, così come una built-in flatfile library) 
+memorizza coppie key/value (al contrario dei full-blown records supportati dai 
+database relazionali). 
+   /simpara
+   para
+example
+ titleEsempio DBM/title
+ programlisting role=php
+![CDATA[
+$dbm = dbmopen (lastseen, w);
+if (dbmexists ($dbm, $userid)) {
+$last_seen = dbmfetch ($dbm, $userid);
+} else {
+dbminsert ($dbm, $userid, time());
+}
+do_stuff();
+dbmreplace ($dbm, $userid, time());
+dbmclose ($dbm);
+]]
+ /programlisting
+/example
+   /para
+  /partintro
+
+  refentry id=function.dbmopen
+   refnamediv
+refnamedbmopen/refname
+refpurposeApre un database DBM/refpurpose
+   /refnamediv
+   refsect1
+titleDescrizione/title
+ methodsynopsis
+  typeint/typemethodnamedbmopen/methodname
+  methodparamtypestring/typeparameterfilename/parameter/methodparam
+  methodparamtypestring/typeparameterflags/parameter/methodparam
+ /methodsynopsis
+para
+ Il primo argomento è il nome (con il percorso completo) del file DBM da aprire e 
+ il secondo è l' open mode del file che può essere r, n, c or w per sola 
+ lettura, nuovo (implica lettura-scrittura, e 
+ molto probabilmente troncherà un database 
+ esistente con lo stesso nome), crea (implica 
+ lettura-scrittura, e non troncherà un database 
+ esistente con lo stesso nome) e lettura-scrittura rispettivamente. 
+/para
+para
+ Restituisce un identifier da passare alle altre funzioni DBM in caso di 
+ successo, o false; se fallisce.
+/para
+para
+ Se è usato il supporto NDBM, NDBM creerà filename.dir e filename.pag files. 
+ GDBM usa solo un file, in quanto fa l' internal flat-file support, 
+ e il Berkeley DB crea un
+ filenamefilename.db/filename file. Da notare che PHP fa il suo file 
+ locking in aggiunta a quello che eventualmente potrebbe fare la stessa 
+ libreria DBM. PHP non cancella i files 
+ filename.lck/filename che crea. Semplicemente usa questi 
+ files come fixed inodes su cui fare il file locking. Per maggiori informazioni 
+ sui files DBM, guarda le pagine del tuo manuale UNIX, o scarica
+ ulink url=url.gdbm;GNU's GDBM/ulink.
+/para
+note.sm.uidcheck;
+   /refsect1
+  /refentry
+
+  refentry id=function.dbmclose
+   refnamediv
+refnamedbmclose/refname
+refpurposeChiude un database dbm/refpurpose
+   /refnamediv
+   refsect1
+titleDescrizione/title
+ methodsynopsis
+  typebool/typemethodnamedbmclose/methodname
+  methodparamtypeint/typeparameterdbm_identifier/parameter/methodparam
+ /methodsynopsis
+para
+ Sblocca e chiude il database specificato.
+/para
+   /refsect1
+  /refentry
+
+  refentry id=function.dbmexists
+   refnamediv
+refnamedbmexists/refname
+refpurpose
+ Dice se esiste un valore per una chiave in un database DBM
+/refpurpose
+   /refnamediv
+   refsect1
+titleDescrizione/title
+ methodsynopsis
+  typebool/typemethodnamedbmexists/methodname
+  methodparamtypeint/typeparameterdbm_identifier/parameter/methodparam
+  methodparamtypestring/typeparameterkey/parameter/methodparam
+ /methodsynopsis
+para
+ Restituisce true; se c'è un valore associato con la 
+ parameterkey/parameter.
+/para
+   /refsect1
+  /refentry
+
+  refentry id=function.dbmfetch
+   refnamediv
+refnamedbmfetch/refname
+refpurpose
+ Estrae un valore per una chiave da un database DBM 
+/refpurpose
+   /refnamediv
+   refsect1
+titleDescrizione/title
+ methodsynopsis
+  typestring/typemethodnamedbmfetch/methodname
+  methodparamtypeint/typeparameterdbm_identifier/parameter/methodparam
+  methodparamtypestring/typeparameterkey/parameter/methodparam
+ /methodsynopsis
+para
+ Restituisce il valore associato con parameterkey/parameter.
+/para
+   /refsect1
+  /refentry
+
+  refentry id=function.dbminsert
+   refnamediv
+refnamedbminsert/refname
+refpurpose
+ Inserisce un valore per una chiave in un database DBM
+/refpurpose
+   /refnamediv
+   refsect1
+titleDescrizione/title
+ methodsynopsis
+  

[PHP-DOC] cvs: phpdoc /it translation.xml

2002-04-01 Thread Simone Cortesi

cortesi Mon Apr  1 14:31:57 2002 EDT

  Modified files:  
/phpdoc/it  translation.xml 
  Log:
  removing Calandras WIP: dbm.xml
  
Index: phpdoc/it/translation.xml
diff -u phpdoc/it/translation.xml:1.60 phpdoc/it/translation.xml:1.61
--- phpdoc/it/translation.xml:1.60  Mon Apr  1 11:58:25 2002
+++ phpdoc/it/translation.xml   Mon Apr  1 14:31:55 2002
 -57,7 +57,6 
   file name=language/functions.xml  person=spisto   type=offline 
revision=1.26 /
   file name=functions/errorfunc.xml person=pulici   type=offline 
revision=1.26 date=20/03/2002 /
   file name=functions/dba.xml   person=calandra type=offline 
date=19/03/2002 /
-  file name=functions/dbm.xml   person=calandra type=offline 
date=19/03/2002 /
   file name=functions/dbplus.xmlperson=calandra type=offline 
date=19/03/2002 /
   file name=functions/dbx.xml   person=calandra type=offline 
date=19/03/2002 /
   file name=functions/fbsql.xml person=calandra type=offline 
date=19/03/2002 /





Re: [PHP-DOC] cvs: phpdoc /en/chapters config.xml

2002-04-01 Thread Mark Kronsbein


 What Installation instructions do you have in mind (Complete list of configure 
options
 ?)

I have in mind that someone whos reading the manual finds everything 
he needs to install and use i.e. MySQL on one place.

- MySQL quick install
- Configuring PHP for MySQL
- Normal manual pages for functions etc.

 Will the section  Complete list of configure options stay at the place
 its now? Or should this be deleted too? The contents are under the
 Installation part of the intro to mysql.xml.

Hartmut is planning something with the options ;)

Mark

-- 
German Gabber Network  http://www.gabber.de
Infos und Tips zu PHP http://www.php-homepage.de



Re: [PHP-DOC] cvs: phpdoc /en/chapters config.xml

2002-04-01 Thread Gabor Hojtsy

  If someone wants to take a look, my proposal for layout:
  http://mysql.holliwell.de/ref.mysql.html, including the infos from
  config.xml. I don't just want to commit, maybe one of the more
experienced

  Looks great. This is what I have in mind, too. Perhaps you should add
  a short installation instruction for MySQL, so all information you need
  to
  use MySQL with PHP will be on one page.

 back from the family meeting for the easter days :-)
 What Installation instructions do you have in mind (Complete list of
configure options
 ?)
 The part under Installation seems to be enough for me? Is
 there/should there be more stuff?
 Will the section  Complete list of configure options stay at the place
 its now? Or should this be deleted too? The contents are under the
 Installation part of the intro to mysql.xml.
 Let me know. Thanks !

Two points from me:

a) All info related to one extension at one place
b) No duplicated documentation, link when duplications needed

Goba





Re: [PHP-DOC] cvs: phpdoc /en/chapters config.xml

2002-04-01 Thread Mark Kronsbein



 a) All info related to one extension at one place
 b) No duplicated documentation, link when duplications needed

Thats what I meant. If the installation of a lib is only
configure, make, make install, its okay, to write it in the 
PHP manual. If its more, link to an installation faq or something.

Mark

-- 
German Gabber Network  http://www.gabber.de
Infos und Tips zu PHP http://www.php-homepage.de



Re: [PHP-DOC] cvs: phpdoc /en/chapters config.xml

2002-04-01 Thread Friedhelm Betz


Hallo Mark,

Monday, April 01, 2002, 9:40:19 PM, you wrote:

 a) All info related to one extension at one place
 b) No duplicated documentation, link when duplications needed

+1

 Thats what I meant. If the installation of a lib is only
 configure, make, make install,
 its okay, to write it in the
 PHP manual. If its more, link to an installation faq or something.

also +1, this could also include the chance to give the win-users the
proper info, e.g. which dll to enable for that extension and also if
this extension _is_ available on win


 Friedhelm   




Re: [PHP-DOC] cvs: phpdoc /en/chapters config.xml

2002-04-01 Thread Friedhelm Betz


 What Installation instructions do you have in mind (Complete list of configure 
options
 ?)

 I have in mind that someone whos reading the manual finds everything 
 he needs to install and use i.e. MySQL on one place.

 - MySQL quick install

Really?? For most extensions this is not as easy :-). In this case
your other proposal (linking to external infos) seems to be more handy
to me.

 - Configuring PHP for MySQL
 - Normal manual pages for functions etc.

 Will the section  Complete list of configure options stay at the place
 its now? Or should this be deleted too? The contents are under the
 Installation part of the intro to mysql.xml.

 Hartmut is planning something with the options ;)

So for now, I'll leave that section untouched :-) Untill Hartmut has
worked out, there are two sections with nearly the same contents, but
in this case it seems to be ok for me.

  Friedhelm




[PHP-DOC] cvs: phpdoc /en/chapters config.xml

2002-04-01 Thread Friedhelm Betz

betzMon Apr  1 16:06:12 2002 EDT

  Modified files:  
/phpdoc/en/chapters config.xml 
  Log:
  moving ini-settings for ODBC  to  function-ref.
  
Index: phpdoc/en/chapters/config.xml
diff -u phpdoc/en/chapters/config.xml:1.45 phpdoc/en/chapters/config.xml:1.46
--- phpdoc/en/chapters/config.xml:1.45  Mon Apr  1 12:06:02 2002
+++ phpdoc/en/chapters/config.xml   Mon Apr  1 16:06:11 2002
 -1,5 +1,5 
 ?xml version=1.0 encoding=iso-8859-1?
-!-- $Revision: 1.45 $ --
+!-- $Revision: 1.46 $ --
  chapter id=configuration
   titleConfiguration/title
 
 -1437,129 +1437,6 
para
 Name of browser capabilities file. See also
 functionget_browser/function.
-   /para
-  /listitem
- /varlistentry
- 
-/variablelist
-   /sect2
-
-   sect2 id=ini.sect.uodbc
-titleUnified ODBC Configuration Directives/title
-variablelist
- 
- varlistentry id=ini.uodbc.default-db
-  term
-   parameterodbc.default_db/parameter
-   typestring/type
-  /term
-  listitem
-   para
-ODBC data source to use if none is specified in
-functionodbc_connect/function or
-functionodbc_pconnect/function.
-   /para
-  /listitem
- /varlistentry
- 
- varlistentry id=ini.uodbc.default-user
-  term
-   parameterodbc.default_user/parameter
-   typestring/type
-  /term
-  listitem
-   para
-User name to use if none is specified in
-functionodbc_connect/function or
-functionodbc_pconnect/function.
-   /para
-  /listitem
- /varlistentry
- 
- varlistentry id=ini.uodbc.default-pw
-  term
-   parameterodbc.default_pw/parameter
-   typestring/type
-  /term
-  listitem
-   para
-Password to use if none is specified in
-functionodbc_connect/function or
-functionodbc_pconnect/function.
-   /para
-  /listitem
- /varlistentry
- 
- varlistentry id=ini.uodbc.allow-persistent
-  term
-   parameterodbc.allow_persistent/parameter
-   typeboolean/type
-  /term
-  listitem
-   para
-Whether to allow persistent ODBC connections.
-   /para
-  /listitem
- /varlistentry
- 
- varlistentry id=ini.uodbc.check-persistent
-  term
-   parameterodbc.check_persistent/parameter
-   typeboolean/type
-  /term
-  listitem
-   para
-Check that a connection is still valid before reuse.
-   /para
-  /listitem
- /varlistentry
- 
- varlistentry id=ini.uodbc.max-persistent
-  term
-   parameterodbc.max_persistent/parameter
-   typeinteger/type
-  /term
-  listitem
-   para
-The maximum number of persistent ODBC connections per process.
-   /para
-  /listitem
- /varlistentry
- 
- varlistentry id=ini.uodbc.max-links
-  term
-   parameterodbc.max_links/parameter
-   typeinteger/type
-  /term
-  listitem
-   para
-The maximum number of ODBC connections per process, including
-persistent connections.
-   /para
-  /listitem
- /varlistentry
-
- varlistentry id=ini.uodbc.defaultlrl
-  term
-   parameterodbc.defaultlrl/parameter
-   typeinteger/type
-  /term
-  listitem
-   para
-Handling of LONG fields. Specifies the number of bytes returned to 
-variables.
-   /para
-  /listitem
- /varlistentry
- 
- varlistentry id=ini.uodbc.defaultbinmode
-  term
-   parameterodbc.defaultbinmode/parameter
-   typeinteger/type
-  /term
-  listitem
-   para
-Handling of binary data.
/para
   /listitem
  /varlistentry





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

2002-04-01 Thread Friedhelm Betz

betzMon Apr  1 16:09:19 2002 EDT

  Modified files:  
/phpdoc/en/functionsuodbc.xml 
  Log:
  added ini-settings from config.xml to Runtime Config
  
Index: phpdoc/en/functions/uodbc.xml
diff -u phpdoc/en/functions/uodbc.xml:1.38 phpdoc/en/functions/uodbc.xml:1.39
--- phpdoc/en/functions/uodbc.xml:1.38  Fri Mar 29 10:25:47 2002
+++ phpdoc/en/functions/uodbc.xml   Mon Apr  1 16:09:19 2002
 -1,5 +1,5 
 ?xml version=1.0 encoding=iso-8859-1?
-!-- $Revision: 1.38 $ --
+!-- $Revision: 1.39 $ --
  reference id=ref.odbc
   titleUnified ODBC functions/title
   titleabbrevODBC/titleabbrev
 -52,9 +52,9 
 titleRuntime Configuration/title
 para
  The behaviour of the ODBC functions is affected by settings in the
- global link linkend=configurationconfiguration/link file.
+ global link linkend=configuration.fileconfiguration file/link php.ini;.
  table
-  titlelink linkend=ini.sect.uodbcUnified ODBC Configuration/link 
Options/title
+  titleUnified ODBC Configuration Options/title
   tgroup cols=3
thead
 row
 -119,6 +119,128 
  /note
  For further details and definition of the PHP_INI_* constants see
  functionini_set/function.
+/para
+para
+ Here is a short explanation of the configuration directives.
+variablelist
+
+ varlistentry id=ini.uodbc.default-db
+  term
+   parameterodbc.default_db/parameter
+   typestring/type
+  /term
+  listitem
+   para
+ODBC data source to use if none is specified in
+functionodbc_connect/function or
+functionodbc_pconnect/function.
+   /para
+  /listitem
+ /varlistentry
+ 
+ varlistentry id=ini.uodbc.default-user
+  term
+   parameterodbc.default_user/parameter
+   typestring/type
+  /term
+  listitem
+   para
+User name to use if none is specified in
+functionodbc_connect/function or
+functionodbc_pconnect/function.
+   /para
+  /listitem
+ /varlistentry
+ 
+ varlistentry id=ini.uodbc.default-pw
+  term
+   parameterodbc.default_pw/parameter
+   typestring/type
+  /term
+  listitem
+   para
+Password to use if none is specified in
+functionodbc_connect/function or
+functionodbc_pconnect/function.
+   /para
+  /listitem
+ /varlistentry
+ 
+ varlistentry id=ini.uodbc.allow-persistent
+  term
+   parameterodbc.allow_persistent/parameter
+   typeboolean/type
+  /term
+  listitem
+   para
+Whether to allow persistent ODBC connections.
+   /para
+  /listitem
+ /varlistentry
+ 
+ varlistentry id=ini.uodbc.check-persistent
+  term
+   parameterodbc.check_persistent/parameter
+   typeboolean/type
+  /term
+  listitem
+   para
+Check that a connection is still valid before reuse.
+   /para
+  /listitem
+ /varlistentry
+ 
+ varlistentry id=ini.uodbc.max-persistent
+  term
+   parameterodbc.max_persistent/parameter
+   typeinteger/type
+  /term
+  listitem
+   para
+The maximum number of persistent ODBC connections per process.
+   /para
+  /listitem
+ /varlistentry
+ 
+ varlistentry id=ini.uodbc.max-links
+  term
+   parameterodbc.max_links/parameter
+   typeinteger/type
+  /term
+  listitem
+   para
+The maximum number of ODBC connections per process, including
+persistent connections.
+   /para
+  /listitem
+ /varlistentry
+
+ varlistentry id=ini.uodbc.defaultlrl
+  term
+   parameterodbc.defaultlrl/parameter
+   typeinteger/type
+  /term
+  listitem
+   para
+Handling of LONG fields. Specifies the number of bytes returned to
+variables.
+   /para
+  /listitem
+ /varlistentry
+ 
+ varlistentry id=ini.uodbc.defaultbinmode
+  term
+   parameterodbc.defaultbinmode/parameter
+   typeinteger/type
+  /term
+  listitem
+   para
+Handling of binary data.
+   /para
+  /listitem
+ /varlistentry
+ 
+/variablelist
 /para
/section
 





[PHP-DOC] Bug #16380 Updated: php.net manual suggestion - link to class functions from oop page

2002-04-01 Thread sander

 ID:   16380
 Updated by:   [EMAIL PROTECTED]
 Reported By:  [EMAIL PROTECTED]
-Status:   Open
+Status:   Closed
-Bug Type: Website problem
+Bug Type: Documentation problem
 Operating System: -
 PHP Version:  4.1.2
 New Comment:

We have special categories for documentation problems, feature request
and the PHP.net website. This belongs to the documentation problems.

Anyway, I've added a note to the manual. It should show up on the site
in a couple of days.


Previous Comments:


[2002-04-01 13:09:30] [EMAIL PROTECTED]

I don't know if this is the correct forum for making suggestions like
this, but if not it might be worth considering expanding the scope of
the bug reports system to cover suggestions, feature requests, website
feedback and so forth - Mozilla's bugzilla system covers all of that
and works extremely well.



[2002-04-01 13:07:51] [EMAIL PROTECTED]

A link from this page:

http://www.php.net/manual/en/language.oop.php

To this page:

http://www.php.net/manual/en/ref.classobj.php

Would be very useful.




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




[PHP-DOC] Bug #16377 Updated: allow_url_fopen = Off cuts the ability to open php://*

2002-04-01 Thread derick

 ID:   16377
 Updated by:   [EMAIL PROTECTED]
 Reported By:  [EMAIL PROTECTED]
 Status:   Open
-Bug Type: Filesystem function related
+Bug Type: Documentation problem
 Operating System: Red Hat 6.x  7.x
 PHP Version:  4.1.2
 New Comment:

Not a bug, making it a documentation issue.

Derick


Previous Comments:


[2002-04-01 11:32:30] [EMAIL PROTECTED]

?php
ini_set('allow_url_fopen',false);
if (!fopen('php://stderr','w')) echo No\n;
ini_set('allow_url_fopen',true);
if (fopen('php://stderr','w')) echo Yes\n;
?

Ouput:
Warning: fopen(php://stderr, w) - No existe el fichero o el
directorio in /root/temp/basura/fopen.php on line 3
No
Yes

-- Tomas V.V.Cox




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




[PHP-DOC] Server

2002-04-01 Thread Thales



 Hi everybody!
  It's me 
again.
  Please, 
somebody, help me! I need this PHP working fastly! I have a page to finish and I 
cannot make it run even in Apache!
  I tried 
Apache, PWS and Xitami, and in all of them it had the same error when I tried to 
load a page in PHP:

"Security Alert! PHP CGI cannot be accessed 
directly.This PHP CGI binary was compiled with force-cgi-redirect enabled. 
This meansthat a page will only be served up if the REDIRECT_STATUS CGI 
variable isset. This variable is set, for example, by Apache's Action 
directiveredirect.You may disable this restriction by recompiling 
the PHP binary withthe --disable-force-cgi-redirect switch. If you do this 
and you have yourPHP CGI binary accessible somewhere in your web tree, 
people will be able tocircumvent .htaccess security by loading files through 
the PHP parser. Agood way around this is to define doc_root in your php.ini 
file to somethingother than your top-level DOCUMENT_ROOT. This way you can 
separate the partof your web space which uses PHP from the normal part using 
.htaccesssecurity. If you do not have any .htaccess restrictions anywhere on 
yoursite you can leave doc_root undefined. If you are running IIS, you 
maysafely set cgi.force_redirect=0 in php.ini."

  If somebody 
knows how to resolve it, please tell me!
 Thank you all!

See ya!

Thales Medeiros.


RE: [PHP-DOC] Server

2002-04-01 Thread James Cox

apologies for not getting back to you.

this works fine with apache.

set cgi.force-redirect to 1 in php.ini and restart your computer.

it should work fine after that.


-Original Message-
From: Thales [mailto:[EMAIL PROTECTED]]
Sent: Monday, April 01, 2002 11:51 PM
To: [EMAIL PROTECTED]
Subject: [PHP-DOC] Server


Hi everybody!
It's me again.
Please, somebody, help me! I need this PHP working fastly! I have a
page to finish and I cannot make it run even in Apache!
I tried Apache, PWS and Xitami, and in all of them it had the same
error when I tried to load a page in PHP:

Security Alert! PHP CGI cannot be accessed directly.
This PHP CGI binary was compiled with force-cgi-redirect enabled. This means
that a page will only be served up if the REDIRECT_STATUS CGI variable is
set. This variable is set, for example, by Apache's Action directive
redirect.

You may disable this restriction by recompiling the PHP binary with
the --disable-force-cgi-redirect switch. If you do this and you have your
PHP CGI binary accessible somewhere in your web tree, people will be able to
circumvent .htaccess security by loading files through the PHP parser. A
good way around this is to define doc_root in your php.ini file to something
other than your top-level DOCUMENT_ROOT. This way you can separate the part
of your web space which uses PHP from the normal part using .htaccess
security. If you do not have any .htaccess restrictions anywhere on your
site you can leave doc_root undefined. If you are running IIS, you may
safely set cgi.force_redirect=0 in php.ini.

If somebody knows how to resolve it, please tell me!
Thank you all!

See ya!

Thales Medeiros.




Re: [PHP-DOC] Server

2002-04-01 Thread Thales

Hi, James!
Thanks for the help, but the cgi.force_redirect was already set to
1. I also tried to set it to 0, but nothing happened. I just mistaked when I
told you the error message that Apache gives me. It is now:

Syntax error on line 1022 of c:/arquivos de
programas/apache/conf/httpd.conf:
LoadModule takes two arguments, a module name and the name of a shared
object fi
le to load it from
Note the errors or messages above, and press the ESC key to exit.  15...

The sintax that I'm using in the httpd.conf file is:

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

ScriptAlias /php/ c:/arquivos de programas/php/
AddType application/x-httpd-php .php
Action application/x-httpd-php /arquivos de programas/php/php.exe

The line 1022 is the first one:

LoadModule php4_module c:/arquivos de programas/php/sapi/php4apache.dll

And PHP directory is at C:\Arquivos de Programas\php.
What should I do?
Thanks for even reading me.

Thales Medeiros.

- Original Message -
From: James Cox [EMAIL PROTECTED]
To: Thales [EMAIL PROTECTED]; [EMAIL PROTECTED]
Sent: Monday, April 01, 2002 8:07 PM
Subject: RE: [PHP-DOC] Server


apologies for not getting back to you.

this works fine with apache.

set cgi.force-redirect to 1 in php.ini and restart your computer.

it should work fine after that.


-Original Message-
From: Thales [mailto:[EMAIL PROTECTED]]
Sent: Monday, April 01, 2002 11:51 PM
To: [EMAIL PROTECTED]
Subject: [PHP-DOC] Server


Hi everybody!
It's me again.
Please, somebody, help me! I need this PHP working fastly! I have a
page to finish and I cannot make it run even in Apache!
I tried Apache, PWS and Xitami, and in all of them it had the same
error when I tried to load a page in PHP:

Security Alert! PHP CGI cannot be accessed directly.
This PHP CGI binary was compiled with force-cgi-redirect enabled. This means
that a page will only be served up if the REDIRECT_STATUS CGI variable is
set. This variable is set, for example, by Apache's Action directive
redirect.

You may disable this restriction by recompiling the PHP binary with
the --disable-force-cgi-redirect switch. If you do this and you have your
PHP CGI binary accessible somewhere in your web tree, people will be able to
circumvent .htaccess security by loading files through the PHP parser. A
good way around this is to define doc_root in your php.ini file to something
other than your top-level DOCUMENT_ROOT. This way you can separate the part
of your web space which uses PHP from the normal part using .htaccess
security. If you do not have any .htaccess restrictions anywhere on your
site you can leave doc_root undefined. If you are running IIS, you may
safely set cgi.force_redirect=0 in php.ini.

If somebody knows how to resolve it, please tell me!
Thank you all!

See ya!

Thales Medeiros.





Re: [PHP-DOC] Server

2002-04-01 Thread Thales

Hey guy... You have just saved my life!
It worked! I just deleted the module lines and it worked... I just
didn't understand because it worked once, before I formatted my HD, and it
was correct! I used this module lines.
Well... Thanks a lot! You don't know how I'm happy for that!
If you need a help from me (who knows nothing about configuring a
server), you can count on me. See ya!

Thales Medeiros.

- Original Message -
From: James Cox [EMAIL PROTECTED]
To: Thales [EMAIL PROTECTED]; [EMAIL PROTECTED]
Sent: Monday, April 01, 2002 10:14 PM
Subject: RE: [PHP-DOC] Server


Thales.

I just ran a test with Xitami, IIS (the big brother to PWS) and Apache.
again. all work, so i know it's not PHP's fault. :)

So, looking at your *apache* errors, I see a few obvious errors:


since you seem to like using PHP as CGI, you don't need to add module
lines -- delete those

and change :


ScriptAlias /php/ c:/arquivos de programas/php/
AddType application/x-httpd-php .php
Action application/x-httpd-php /arquivos de programas/php/php.exe
-

the action line here should be /php/php.exe  - NOT /arqui

this should work. let me know.





RE: [PHP-DOC] Server

2002-04-01 Thread James Cox

you're welcome...

-Original Message-
From: Thales [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, April 02, 2002 2:33 AM
To: James Cox; [EMAIL PROTECTED]
Subject: Re: [PHP-DOC] Server


Hey guy... You have just saved my life!
It worked! I just deleted the module lines and it worked... I just
didn't understand because it worked once, before I formatted my HD, and it
was correct! I used this module lines.
Well... Thanks a lot! You don't know how I'm happy for that!
If you need a help from me (who knows nothing about configuring a
server), you can count on me. See ya!

Thales Medeiros.

- Original Message -
From: James Cox [EMAIL PROTECTED]
To: Thales [EMAIL PROTECTED]; [EMAIL PROTECTED]
Sent: Monday, April 01, 2002 10:14 PM
Subject: RE: [PHP-DOC] Server


Thales.

I just ran a test with Xitami, IIS (the big brother to PWS) and Apache.
again. all work, so i know it's not PHP's fault. :)

So, looking at your *apache* errors, I see a few obvious errors:


since you seem to like using PHP as CGI, you don't need to add module
lines -- delete those

and change :


ScriptAlias /php/ c:/arquivos de programas/php/
AddType application/x-httpd-php .php
Action application/x-httpd-php /arquivos de programas/php/php.exe
-

the action line here should be /php/php.exe  - NOT /arqui

this should work. let me know.





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

2002-04-01 Thread Simone Cortesi

cortesi Tue Apr  2 02:25:39 2002 EDT

  Modified files:  
/phpdoc/en/functionszip.xml 
  Log:
  refpurpose on one line and adding entity we already have: return.success;
  
Index: phpdoc/en/functions/zip.xml
diff -u phpdoc/en/functions/zip.xml:1.17 phpdoc/en/functions/zip.xml:1.18
--- phpdoc/en/functions/zip.xml:1.17Sat Feb  2 10:36:11 2002
+++ phpdoc/en/functions/zip.xml Tue Apr  2 02:25:39 2002
 -1,5 +1,5 
 ?xml version=1.0 encoding=iso-8859-1?
-!-- $Revision: 1.17 $ --
+!-- $Revision: 1.18 $ --
  reference id=ref.zip
   titleZip File Functions (Read Only Access)/title
   titleabbrevZip/titleabbrev
 -156,9 +156,7 
   refentry id=function.zip-entry-compressionmethod
refnamediv
 refnamezip_entry_compressionmethod/refname
-refpurpose
- Retrieve the Compression Method of a Directory Entry
-/refpurpose
+refpurposeRetrieve the Compression Method of a Directory Entry/refpurpose
/refnamediv
refsect1
 titleDescription/title
 -182,9 +180,7 
   refentry id=function.zip-entry-filesize
refnamediv
 refnamezip_entry_filesize/refname
-refpurpose
- Retrieve the Actual File Size of a Directory Entry
-/refpurpose
+refpurposeRetrieve the Actual File Size of a Directory Entry/refpurpose
/refnamediv
refsect1
 titleDescription/title
 -261,7 +257,7 
  /para
 /note
 para
- Returns true; on succes or false; on failure.
+ return.success;
 /para
 note
  para
 -396,4 +392,3 
 vim: et tw=78 syn=sgml
 vi: ts=1 sw=1
 --
-





[PHP-DOC] Bug #16366 Updated: bit shifting error

2002-04-01 Thread jason

 ID:   16366
 Updated by:   [EMAIL PROTECTED]
 Reported By:  [EMAIL PROTECTED]
 Status:   Open
-Bug Type: Math related
+Bug Type: Documentation problem
 Operating System: WinXP
 PHP Version:  4.1.2
 New Comment:

This is not really a bug, this is the behavior of a 32 bit system in
any language. Run perl -e 'print 1134' or write a C program which
does the same. 

Since this behavior is common and exists in other languages, the best
we could do is document it.

-Jason


Previous Comments:


[2002-03-31 17:53:05] [EMAIL PROTECTED]

Ahh.. It still should produce zero though.



[2002-03-31 15:32:23] [EMAIL PROTECTED]

Actually - the echo(1134) issue, is somewhat expected behavior. What
happens, is that it returns 112 (34 - 32) - BUT only on a 32-bit
system.

I just checked at an AIX 64-bit system, and there echo(1134) gives 0
And anything above 64-bit is than equal to $int($shift % 64).
Maybe it should be added to the bitwise operators documentation.

?php
print(32 bits test\n);
$int=11;
for ($shift=31;$shift35;$shift++)
{
print($shift: );
$check=$int$shift;
print($check);
print(\n\n);
}
print(64 bits test\n);
for($shift=63;$shift67;$shift++)
{
print($shift: );
$check=$int$shift;
print($check);
print(\n);
}
?

On a 64-bit system produces:
$ php -f test.php
32 bits test
31: 0

32: 0

33: 0

34: 0

64 bits test
63: 0
64: 11
65: 5
66: 2

On a 32-bit system produces:
32 bits test
31: 0

32: 11

33: 5

34: 2

64 bits test
63: 0
64: 11
65: 5
66: 2



[2002-03-31 13:42:14] [EMAIL PROTECTED]

Just a reminder of the original issue:

echo (1134) produces 2

This is not a documentation problem, unless you want to write that
shifting greater than 32 has incorrect results.



[2002-03-31 13:39:23] [EMAIL PROTECTED]

are you sure? there is already a bunch of reports on floating-point
bugs in PHP. That's why I didn't reopen it.



[2002-03-31 13:38:51] [EMAIL PROTECTED]

Well I have 200 groups of 64 on/off's.. I can name the 200 bigint
groups but there is no way in hell I am going to name 12,800 bools, not
to mention that they would take up 8x more space in the database.. Each
group has the same structure - somebody needs to write a DB that uses
structures as custom fields.  This may be the way they work but this is
ancient design - I was surprised as hell when I started learning MySQL
and realized that they are still doing things this way.  But anyway. 
Now I am thinking char binary since it can be fixed size, but the
documentation on PHP's conversions of MySQL is sparse.  If someone
would like to pursue this in private email please write.

The original bug was about bit shifting, which I don't think would
involve a conversion to float.. unless PHP is doing something weird. 
It looks like someone is just not expecting a shift greater than 32.



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

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