So example can contain screens and paras. So the COMPLETE
EXAMPLE SKELETON in your draft is right.
Thanks for your check. As said, I am not very familiar with Docbook :-).
Therfore I didn`t ment that this is the only one and right way to write
examples :-) With certainty someone else
| $conn = mysql_connect(...) or user_error(Cannot connect,
E_USER_ERROR);
| lacks flexibility, not in error_handling but the in the or construct.
| Philip
| Olson dropped a note about this in a recent mail.
I'll check it, but you can write still:
$connect = mysql_connect(...);
if
| | $conn = mysql_connect(...) or user_error(Cannot connect,
| E_USER_ERROR);
| | lacks flexibility, not in error_handling but the in the or construct.
| | Philip
| | Olson dropped a note about this in a recent mail.
|
| I'll check it, but you can write still:
|
| $connect =
Thanks for your additions. Looking forward for more.:-)
I tried to incorporate them, also the contributions from the other people.
Have a look online http://www.holliwell.de/draft/draft1
or download at http://www.holliwell.de/draft/draft1.tar.gz (about 4kb)
Keep in mind it`s a draft and
Thanks for your additions. Looking forward for more.:-)
I tried to incorporate them, also the contributions from the other people.
Have a look online http://www.holliwell.de/draft/draft1
or download at http://www.holliwell.de/draft/draft1.tar.gz (about 4kb)
Keep in mind it`s a draft and
+1 for trigger_error(); -1 for user_error: alias for trigger_error
OK, use trigger_error(). Is user_error() a deprecated alias?
syslog seems always a bit suspicious to me. Depending on the webserver
configuration, that user may have insufficient rights to write into??
On win detailed tuning
(Sample output:
not as familiar to docbook as you are.
Therefore i just copied this from array.xml; first example with screen..
Btw. there are many differrent ways used with this sreen thing.)
Check if it is still there, from where you copied. If it is,
then it is docbook compatible. I
(Sample output:
not as familiar to docbook as you are.
Therefore i just copied this from array.xml; first example with
screen..
Btw. there are many differrent ways used with this sreen thing.)
Check if it is still there, from where you copied. If it is,
then it is docbook
Gabor Hojtsy [EMAIL PROTECTED] wrote in message
005101c1990c$bac51520$281ca3d5@Mia">news:005101c1990c$bac51520$281ca3d5@Mia...
| +1 for trigger_error(); -1 for user_error: alias for trigger_error
+1 for trigger_error(); -1 for user_error, so do I.
IMHO, the main point is that using
Hi,
in reference to the thread [PHP-DOC] MySQL examples need review
started by Slawomir Pucia:
I gathered the suggestions made by the people, put the relevant pieces
from the current howto, added PEAR Coding standards and some
suggestions of mine to a working draft for coding standards. Its far
I gathered the suggestions made by the people, put the relevant pieces
from the current howto, added PEAR Coding standards and some
suggestions of mine to a working draft for coding standards. Its far
away from beeing perfect, but maybe a starting point for further
discussion.
Interested
Hi,
On Fri, 28 Dec 2001 18:36:22 +0100
Gabor Hojtsy [EMAIL PROTECTED] wrote:
concatenation makes code unreadable
I disagree on that. I think strinc concatenation makes the code more
readble, because of the face, that what a variable is is clearly
separated from what the string is.
echo bar
concatenation makes code unreadable
I disagree on that. I think strinc concatenation makes the code more
readble, because of the face, that what a variable is is clearly
separated from what the string is.
echo bar is $bar;
vs.
echo 'bar is '.$bar;
additionaly in the first version
Hi,
On Fri, 28 Dec 2001 19:03:56 +0100
Gabor Hojtsy [EMAIL PROTECTED] wrote:
concatenation makes code unreadable
I disagree on that. I think strinc concatenation makes the code more
readble, because of the face, that what a variable is is clearly
separated from what the string is.
echo bar is $bar;
vs.
echo 'bar is '.$bar;
additionaly in the first version $bar will be automagically transformed
into a string, which is not nessecary.
In the second version, you used the . operator, which also
automagically transforms $bar into a string for that operation,
concatenation makes code unreadable
I disagree on that. I think strinc concatenation makes the code more
readble, because of the face, that what a variable is is clearly
separated from what the string is.
echo bar is $bar;
vs.
echo 'bar is '.$bar;
I hope my
+1 for not worrying about strings this way, either is okay. If I were to
pick one (which is imho a bad idea) it be using . But, this is not
always the case, depends. Now, I believe the bulk of Jan's comment was
regarding arrays here, which was:
'string '. $arr['key'] .' blah';
And
3. Keep in mimd: In ![CDATA[... ]] section nothing is parsed. So be sure
to put XML-code that needs parsing outside of CDATA sections, e.g.
comments or links.
See (for example): Language reference|Types|Arrays under Examples;
or Language reference|Types|Strings
I hope I have now
I talked about ${} and not {$}. ${} also works, at
least in some cases. And it is in the docs. Is this
an inconsistency in PHP?
Regarding inconsistency, I've never used ${} for this and don't see any
docs that mention this syntax for arrays in strings. The docs do mention
{$} syntax though.
I talked about ${} and not {$}. ${} also works, at
least in some cases. And it is in the docs. Is this
an inconsistency in PHP?
Regarding inconsistency, I've never used ${} for this and don't see any
docs that mention this syntax for arrays in strings. The docs do mention
{$} syntax
This makes sense as $beers is not a set variable. {$beer}s works too
though, seems okay that both work. Anyway, this isn't an array ;-))
OK, can you give an example you can do with ${} but you can't with
{$} and the opposite? Would be nice to clear at least my mind about
that :) We may
This makes sense as $beers is not a set variable. {$beer}s works too
though, seems okay that both work. Anyway, this isn't an array ;-))
OK, can you give an example you can do with ${} but you can't with
{$} and the opposite? Would be nice to clear at least my mind about
that :) We
OK, can you give an example you can do with ${} but you can't with
{$} and the opposite? Would be nice to clear at least my mind about
that :) We may include an example in the manual to show people
why we have two frighteningly similar things for the same thing
echo this is ${bar};
23 matches
Mail list logo