RE: Warning: session_start()

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



> -----Original Message-----
> From: Pete Ford [mailto:pete@xxxxxxxxxxxxx]
> Sent: 19 May 2011 11:36
> To: php-general@xxxxxxxxxxxxx
> Subject: Re:  Warning: session_start()
> 
> >> On 18 May 2011 19:15, Nazish<nazish@xxxxxxx>  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@xxxxxxxxxxxxxx 
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



[Index of Archives]     [PHP Home]     [Apache Users]     [PHP on Windows]     [Kernel Newbies]     [PHP Install]     [PHP Classes]     [Pear]     [Postgresql]     [Postgresql PHP]     [PHP on Windows]     [PHP Database Programming]     [PHP SOAP]

  Powered by Linux