RE: [PHP] Warning: session_start()
| From: | Ford, Mike | Date: | Thu, 19 May 2011 12:18:26 +0000 |
| Subject: | RE: [PHP] Warning: session_start() | ||
| References: | 1 2 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-312910@lists.php.net to get a copy of this message | ||
> -----Original Message-----
> From: Pete Ford [mailto:pete@justcroft.com]
> Sent: 19 May 2011 11:36
> To: php-general@lists.php.net
> Subject: Re: [PHP] Warning: session_start()
>
> >> On 18 May 2011 19:15, Nazish<nazish@jhu.edu> wrote:
> >
> >>> Hi everyone,
> >
> >>> <!--------------------------------------------------------------
> ---------
> >>> WHEN USER CLICKS 'ENTER' TO LOGIN
> >>> <!--------------------------------------------------------------
> ---------->
> >>> <?php
> >
> > code, code, code.
> >
> >>> ?>
> >>
>
> The comment should really be inside the php block:
Not to mention that not all of that so-called "comment" is actually
comment, due to the little-understood principle that every -- inside
<!-- --> flips between comment and renderable text, and counting your
hyphens *very* carefully reveals that the WHEN USER message is liable
to be treated as renderable text.
It is good practice, for this reason, NEVER to use any double-hyphen
combinations within an HTML comment - single ones are fine, but any
other kind of usage such as the above should be studiously avoided.
(Speaking as one bitten on the bum multiple times by badly-formatted
HTML comments in a specialist bought-in system, which constantly
threatened to ruin my carefully crafted CSS layouts!)
Cheers!
Mike
--
Mike Ford,
Electronic Information Developer, Libraries and Learning Innovation,
Leeds Metropolitan University, C507 City Campus,
Woodhouse Lane, LEEDS, LS1 3HE, United Kingdom
Email: m.ford@leedsmet.ac.uk
Tel: +44 113 812 4730
To view the terms under which this email is distributed, please go to http://disclaimer.leedsmet.ac.uk/email.htm