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

2001-12-23 Thread Philip Olson
philip Mon Dec 24 01:57:57 2001 EDT Modified files: /phpdoc/en/functionsnotes.xml Log: Lotus Notes: Is an experimental extension. Index: phpdoc/en/functions/notes.xml diff -u phpdoc/en/functions/notes.xml:1.2 phpdoc/en/functions/notes.xml:1.3 --- ph

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

2001-12-23 Thread Philip Olson
philip Sun Dec 23 19:56:12 2001 EDT Modified files: /phpdoc/en/functionsfilesystem.xml Log: fgets: Modifying recently added note to make more sense, length is a parameter. Index: phpdoc/en/functions/filesystem.xml diff -u phpdoc/en/functions/filesys

Re: [PHP-DOC] Coding Std. [was: Re: [PHP-DOC] MySQL examples needreview]

2001-12-23 Thread Philip Olson
> > "a $arr[foo] b" > > "a {$arr['foo']} b" > > 'a ' . $arr['foo'] . ' b'; > The first ist simply wrong. with $array[foo] PHP assumes foo is an > constant with the value foo, which is not coorect when using 'strings' > as indices. Actually, it's not wrong. Constants are not looked for in stri

Re: [PHP-DOC] Coding Std. [was: Re: [PHP-DOC] MySQL examples need review]

2001-12-23 Thread Jan Lehnardt
Hi, On Sun, 23 Dec 2001 20:36:07 + (GMT) Philip Olson <[EMAIL PROTECTED]> wrote: > "a $arr[foo] b" > "a {$arr['foo']} b" > 'a ' . $arr['foo'] . ' b'; The first ist simply wrong. with $array[foo] PHP assumes foo is an constant with the value foo, which is not coorect when using 'strings' as

Re: [PHP-DOC] Coding Std. [was: Re: [PHP-DOC] MySQL examples needreview]

2001-12-23 Thread Philip Olson
> > > $variables shoud be concatenated with '. instead of using "$var strng". > > -1. I prefer "$var string". > > $var." string" is less ambigious. Actually it should be $var.' string' as > "$var string" and '$var string' behave differently $var.' string' and $var." > string" work the same. -1 f

Re: [PHP-DOC] MySQL examples need review

2001-12-23 Thread Philip Olson
Not sure if I agree they need to be identical, I did last month but now it doesn't seem like a big deal (pending discussion). Variety is the spice of life :) Regarding below examples, 'single quotes' should be used in every instance. The spacing looks fine, though. And, whether or not to defin

Re: [PHP-DOC] MySQL examples need review

2001-12-23 Thread Philip Olson
> can you please give an example where 'or die()' is 'not flexible'. I am referring to 'or' specifically. For example: $conn = mysql_connect($host, $user, $pass) or die('Connection failed'); Okay that works. But let's say one wants to do multiple statements on failure, the following will not

Re: [PHP-DOC] Coding Std. [was: Re: [PHP-DOC] MySQL examples need review]

2001-12-23 Thread James Moore
> > $variables shoud be concatenated with '. instead of using "$var strng". > -1. I prefer "$var string". $var." string" is less ambigious. Actually it should be $var.' string' as "$var string" and '$var string' behave differently $var.' string' and $var." string" work the same. - James

[PHP-DOC] Coding Std. [was: Re: [PHP-DOC] MySQL examples need review]

2001-12-23 Thread Marcin Dąbrowski 'DomBal'
Hi there. I thought I'll start a new topic for this. You won't punish me for that? :P > > What do others think about that? > I give a +1 for adapting the PEAR coding standard for Manual examples. +1 from me. > Slawomir Pucia said some mails ago, we should be consistent about using > ' or " for

Re: [PHP-DOC] MySQL examples need review

2001-12-23 Thread Slawomir Pucia
> Regarding whether to use echo or print, concat variables or not, etc. No > need to get that specific imho. Just the basics, like formatting. It simply looks nicer for reader if all examples (at least in one chapter) are similar. Look at these lines from mysql.xml: mysql_connect("mysql_host",

Re: [PHP-DOC] MySQL examples need review

2001-12-23 Thread Jan Lehnardt
Hi, On Sun, 23 Dec 2001 18:59:52 + (GMT) Philip Olson <[EMAIL PROTECTED]> wrote: > And fwiw, I'm against forcing 'or die' formatting in any example, it's not > all that flexible. can you please give an example where 'or die()' is 'not flexible'. Jan -- Q: Thank Jan? A: http://geschenke.an.d

Re: [PHP-DOC] MySQL examples need review

2001-12-23 Thread Jan Lehnardt
Hi, On Sun, 23 Dec 2001 19:37:02 +0100 "Slawomir Pucia" <[EMAIL PROTECTED]> wrote: > > $variables shoud be concatenated with '. instead of using "$var strng". > > What is the reason? If there aren't any efficiency considerations then IMHO > "$var strng" is more clean personal opinion, I think $

Re: [PHP-DOC] MySQL examples need review

2001-12-23 Thread Jan Lehnardt
Hi, On Sun, 23 Dec 2001 18:43:50 - "James Moore" <[EMAIL PROTECTED]> wrote: > > > > > What do others think about that? > > I give a +1 for adapting the PEAR coding standard for Manual examples. > > -1 for anything complicated in the manual. Keep everything clear and concise > why do we nee

Re: [PHP-DOC] MySQL examples need review

2001-12-23 Thread Philip Olson
I don't think anyone means 'use pear' in the examples, just the standard. Like, what makes for a defining a function, construct spacing, etc. Odds are the pear coding standard will be a base which will be modified to suit phpdoc needs. Regarding whether to use echo or print, concat variables or

Re: [PHP-DOC] MySQL examples need review

2001-12-23 Thread Slawomir Pucia
> -1 for anything complicated in the manual. Keep everything clear and concise > why do we need to clutter examples with PEAR error everywhere AFAIK the idea is to adapt PEAR *coding standard* to examples, not to use PEAR itself. slawek-

Re: [PHP-DOC] MySQL examples need review

2001-12-23 Thread James Moore
> > What do others think about that? > I give a +1 for adapting the PEAR coding standard for Manual examples. -1 for anything complicated in the manual. Keep everything clear and concise why do we need to clutter examples with PEAR error everywhere (Nothing against pear I think its great but I

Re: [PHP-DOC] MySQL examples need review

2001-12-23 Thread Slawomir Pucia
> $variables shoud be concatenated with '. instead of using "$var strng". What is the reason? If there aren't any efficiency considerations then IMHO "$var strng" is more clear. slawek-

Re: [PHP-DOC] MySQL examples need review

2001-12-23 Thread Jan Lehnardt
Hi, On Sun, 23 Dec 2001 18:38:45 +0100 "Gabor Hojtsy" <[EMAIL PROTECTED]> wrote: > What do others think about that? I give a +1 for adapting the PEAR coding standard for Manual examples. Some things must be recognized. At first PEAR does have a excellent error handling, but it is to complex to in

Re: [PHP-DOC] MySQL examples need review

2001-12-23 Thread Gabor Hojtsy
> Diffs are hard to read. This was a bad example from me. A better one > would be cvs.php.net or the PHP manual itself. But the codes in the manual are so different, as many people added code, without following any convention, so I cannot agree that reading the manual is a good example to get a s

Re: [PHP-DOC] MySQL examples need review

2001-12-23 Thread Egon Schmid
From: "Gabor Hojtsy" <[EMAIL PROTECTED]> > > > So where we can find the previously written down > > > conventions used for writing PHP code in phpdoc? > > > This file is even not consistent with what you > > > have said about before-PEAR coding standards, as > > > I can see. > > > > I have done m

Re: [PHP-DOC] MySQL examples need review

2001-12-23 Thread Gabor Hojtsy
> > This file is not that much different than the current howto > > contents about conventions. This 1.1 really have no coding > > conventions, just some skeletons. No rules about how to write > > PHP code, except the form convention in point 5. > > > > So where we can find the previously written

Re: [PHP-DOC] MySQL examples need review

2001-12-23 Thread Egon Schmid
From: "Gabor Hojtsy" <[EMAIL PROTECTED]> > > See version 1.1 of README. The latest version have now only a link > > to the howto.tar file. > > OK, I have seen that file now. > http://cvs.php.net/co.php/phpdoc/README?r=1.1 > > Look at the function skeleton for example in that file: > > function so

Re: [PHP-DOC] MySQL examples need review

2001-12-23 Thread Gabor Hojtsy
> See version 1.1 of README. The latest version have now only a link > to the howto.tar file. OK, I have seen that file now. http://cvs.php.net/co.php/phpdoc/README?r=1.1 Look at the function skeleton for example in that file: function some_code($foo) { /* we all agree that four spaces of inden

Re: [PHP-DOC] MySQL examples need review

2001-12-23 Thread Egon Schmid
www.concertband.de > > First of all you should know, that the first writting of PHPDOC was > > only a rewrite of Rasmus´ PHP/FI manual. More and more authors and > > contributors asked many times for a coding standard. So there we > > included some in the source. > > Some things were covered in

[PHP-DOC] cvs: phpdoc /hu/functions funchand.xml

2001-12-23 Thread Gyozo Papp
pgerzsonSun Dec 23 08:36:28 2001 EDT Modified files: /phpdoc/hu/functionsfunchand.xml Log: keep up with the EN revision Index: phpdoc/hu/functions/funchand.xml diff -u phpdoc/hu/functions/funchand.xml:1.9 phpdoc/hu/functions/funchand.xml:1.10 --

Re: [PHP-DOC] MySQL examples need review

2001-12-23 Thread Gabor Hojtsy
> First of all you should know, that the first writting of PHPDOC was > only a rewrite of Rasmus´ PHP/FI manual. More and more authors and > contributors asked many times for a coding standard. So there we > included some in the source. Some things were covered in the old howto (for those who can

Re: [PHP-DOC] MySQL examples need review

2001-12-23 Thread Egon Schmid
From: "Slawomir Pucia" <[EMAIL PROTECTED]> > > Can you add anything to our coding conventions > > discussion? > > First of all, I'm after PEAR coding standard in examples. However, there are > some elements which are not covered by PEAR docs: First of all you should know, that the first writting

[PHP-DOC] cvs: phpdoc /ja/appendices history.xml

2001-12-23 Thread Masaki Fujimoto
fujimotoSun Dec 23 06:40:31 2001 EDT Modified files: /phpdoc/ja/appendices history.xml Log: fixed typo. Index: phpdoc/ja/appendices/history.xml diff -u phpdoc/ja/appendices/history.xml:1.6 phpdoc/ja/appendices/history.xml:1.7 --- phpdoc/ja/appe

Re: [PHP-DOC] MySQL examples need review

2001-12-23 Thread Slawomir Pucia
> Can you add anything to our coding conventions > discussion? First of all, I'm after PEAR coding standard in examples. However, there are some elements which are not covered by PEAR docs: 1. Always use the same values for server, userneme, password and database name, when connecting to databas

[PHP-DOC] cvs: phpdoc /ja/appendices history.xml /ja/features connection-handling.xml cookies.xml error-handling.xml http-auth.xml persistent-connections.xml safe-mode.xml

2001-12-23 Thread Masaki Fujimoto
fujimotoSun Dec 23 05:03:05 2001 EDT Modified files: /phpdoc/ja/appendices history.xml /phpdoc/ja/features connection-handling.xml cookies.xml error-handling.xml http-auth.xml persistent-connections.x

Re: [PHP-DOC] MySQL examples need review

2001-12-23 Thread Gabor Hojtsy
> I was just updating polish mysql.xml, and I must say that original version > is a real mess when it comes to examples. There are lot of different naming > and coding conventions. I think this file needs general review of its > examples. Yes, we are already in the discussion of coding standards.

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

2001-12-23 Thread Philip Olson
philip Sun Dec 23 03:05:14 2001 EDT Modified files: /phpdoc/en/functionsfilesystem.xml Log: fgets: note that length parameter become optional in 4.2.0 Index: phpdoc/en/functions/filesystem.xml diff -u phpdoc/en/functions/filesystem.xml:1.106 phpdoc