> On something related, which way does the best performance lie? Is the
> following quickest, or is it best to
> minimize the amount of times php code is (seperately) defined?
>> <TD><?php print $my_res[date]?></TD>
> <TD><?php print $my_res[client]?> </TD>
> <TD><?php print $my_res[ponum]?></TD>
> <TD><?php print $my_res[ship]?>kwg</TD>
>I don't know, but on a point of anal verbosity, your array elements should
be single- or double-quoted. (If error_reporting() is set to E_ALL, your
application will throw errors. And you should always develop with
error_reporting() set to E_ALL. :)
Also, I know there's a bit of an ongoing argument about the <?= shortcut,
but I can't see it disappearing anytime soon:
<TD><?=$my_res['date']?></TD>
<TD><?=$my_res['client']?> </TD>
<TD><?=$my_res['ponum']?></TD>
<TD><?=$my_res['ship']?>kwg</TD>
(Personally speaking, I rarely print to stdout anymore, unless processing is
heavy and I'm pushing status information with flush(). I usually push all
output into a buffer for processing before final output. This sounds a
little odd - it effectively defeats the purpose of using a preprocessing
language - but again it's just a matter of personal taste and "how things
become to be done". As PHP matures, I mature. A little. :)
adam
Maintained by the ILUG website team. The aim of Linux.ie is to
support and help commercial and private users of Linux in Ireland. You can
display ILUG news in your own webpages, read backend
information to find out how. Networking services kindly provided by HEAnet, server kindly donated by
Dell. Linux is a trademark of Linus Torvalds,
used with permission. No penguins were harmed in the production or maintenance
of this highly praised website. Looking for the
Indian Linux Users' Group? Try here. If you've read all this and aren't a lawyer: you should be!