php-general Digest 26 Feb 2011 13:07:52 -0000 Issue 7201
Topics (messages 311582 through 311586):
Quotes in Heredoc
311582 by: Ashim Kapoor
311584 by: Ashley Sheridan
311585 by: Ashim Kapoor
Infosys FYI
311583 by: Peter Lind
Log Rotation, leave it to OS or do it in PHP code?
311586 by: AmirBehzad Eslami
Administrivia:
To subscribe to the digest, e-mail:
[email protected]
To unsubscribe from the digest, e-mail:
[email protected]
To post to the list, e-mail:
[email protected]
----------------------------------------------------------------------
--- Begin Message ---
Dear All,
I am learning PHP by reading a book. My query pertains to the following
lines : -
$form_str = <<< EOFORMSTR
<TABLE CELLPADDING=0 CELLSPACING=0 BORDER=0 ALIGN=CENTER
WIDTH=621>
<TR>
<TD ROWSPAN=2><IMG WIDTH=15 HEIGHT=1
SRC=../images/spacer.gif></TD>
.....
My query is that is it true that we don't need to do
<TABLE ... ALIGN="CENTER" ...>
ie. we don't need to quote the value of the options in Heredoc. Is that
correct?
Many thanks,
Ashim.
--- End Message ---
--- Begin Message ---
On Sat, 2011-02-26 at 14:41 +0530, Ashim Kapoor wrote:
> Dear All,
>
> I am learning PHP by reading a book. My query pertains to the following
> lines : -
>
> $form_str = <<< EOFORMSTR
> <TABLE CELLPADDING=0 CELLSPACING=0 BORDER=0 ALIGN=CENTER
> WIDTH=621>
> <TR>
> <TD ROWSPAN=2><IMG WIDTH=15 HEIGHT=1
> SRC=../images/spacer.gif></TD>
>
>
> .....
>
> My query is that is it true that we don't need to do
> <TABLE ... ALIGN="CENTER" ...>
>
> ie. we don't need to quote the value of the options in Heredoc. Is that
> correct?
>
> Many thanks,
> Ashim.
The quotes you mention are in the HTML, nothing to do with PHP. HTML
will work without the quotes in most cases (unless there's a space in
the value for the attribute) but the quotes are required in XHTML and
will cause unexpected results.
The only difference Heredoc makes in PHP is that the strings you write
don't require characters to be escaped, which you would have to do
normally in traditional quoted strings.
Thanks,
Ash
http://www.ashleysheridan.co.uk
--- End Message ---
--- Begin Message ---
The quotes you mention are in the HTML, nothing to do with PHP. HTML will
work without the quotes in most cases (unless there's a space in the value
for the attribute) but the quotes are required in XHTML and will cause
unexpected results.
Can you elaborate on the XHTML part? Do you mean they are required in XHTML
but optional in HTML ?
Many thanks,
Ashim.
--- End Message ---
--- Begin Message ---
Det gik op for mig at i tilmeldingsstresset fik jeg taget 2010
databasen ned. Den er nu tilgængelig igen.
Man bruger:
- http://archive.fastaval.dk/2010/infosys/ for at set 2010 udgaven
- http://infosys.fastaval.dk/ for at se 2011 udgaven
Derudover er 2009 udgaven stadig tilgængelig på
http://archive.fastaval.dk/2009/infosys/
De samme adgangskoder skulle virke til både 2010 og 2011.
Regards
Peter
--
<hype>
WWW: plphp.dk / plind.dk
LinkedIn: plind
BeWelcome/Couchsurfing: Fake51
Twitter: kafe15
</hype>
--- End Message ---
--- Begin Message ---
Dear list,
It seems that Python has already a Log Rotation mechanism,
which solves the problem of log file growth.
I'm wondering whether there is any PHP-based solution around?
Now let me ask from a different view:
Is it a good approach to implement the Rotation mechanism to PHP? (Code Level)
Or leave the job to the operating system and other utilities?
Where is the right place to implmenet the Rotation? In Code? In OS?
PHP? or a Bash Script?
Thanks,
--- End Message ---