Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.php > #14781

Re: learn php

From Thomas 'PointedEars' Lahn <PointedEars@web.de>
Newsgroups comp.lang.php
Subject Re: learn php
Date 2014-12-20 19:15 +0100
Organization PointedEars Software (PES)
Message-ID <1732084.k2By8v9I7r@PointedEars.de> (permalink)
References <b7c484d2-123d-410b-96d7-a5701e6a4c16@googlegroups.com> <toudnTuUzJHh2g3JnZ2dnUVZ8mWdnZ2d@bt.com>

Show all headers | View raw


adam wrote:

> |In a php program server side php scripts are writtern inside a php block
> |A scrpting block can be placed anywhere in document and any number of
> |times A standard php scripting block always starts with <?php and ends
> |with ?> which is understandable for any web server that
> |supports php
> closing tag is not always necesarry, […]

The *final* “?>” is actually recommended against except in PHP markup 
templates (see, e.g., the PEAR Coding Standards), because writing it can 
produce unwanted output (e.g., whitespace).

And because business logic and presentation should not be mixed, there 
should not be a need to generate output that way in anything but a markup 
template.

-- 
PointedEars
Zend Certified PHP Engineer
Twitter: @PointedEars2
Please do not cc me. / Bitte keine Kopien per E-Mail.

Back to comp.lang.php | Previous | NextPrevious in thread | Find similar | Unroll thread


Thread

learn php sirishas1911@gmail.com - 2014-12-16 06:01 -0800
  Re: learn php "Christoph M. Becker" <cmbecker69@arcor.de> - 2014-12-16 15:33 +0100
    Re: learn php Jerry Stuckle <jstucklex@attglobal.net> - 2014-12-16 09:50 -0500
  Re: learn php adam <adam@lostwire.net> - 2014-12-16 08:53 -0600
    Re: learn php Thomas 'PointedEars' Lahn <PointedEars@web.de> - 2014-12-20 19:15 +0100

csiph-web