|
Posted by "Ford, Mike" on 10/21/98 11:22
On 21 July 2005 22:19, Chris W. Parker wrote:
> 2. It will be a good idea to get out of the habit of breaking
> in and out
> of PHP like that. Instead just do: echo 'hi1';
Why? Some of us just strongly prefer the breaking in and out style -- I use
it almost exclusively. In my 10,000s of lines of code, you can probably
count the number of echos on your fingers!
> You'll have problems down the road with modifying the headers
> (cookies, redirects, content-type, etc.) if you break in and out.
Absolute rubbish -- whatever gives you this idea? The sequence
?>x<?php
Is functionally identical to
echo 'x';
so anything that works with the latter will work identically with the
former.
Cheers!
Mike
---------------------------------------------------------------------
Mike Ford, Electronic Information Services Adviser,
Learning Support Services, Learning & Information Services,
JG125, James Graham Building, Leeds Metropolitan University,
Headingley Campus, LEEDS, LS6 3QS, United Kingdom
Email: m.ford@leedsmet.ac.uk
Tel: +44 113 283 2600 extn 4730 Fax: +44 113 283 3211
To view the terms under which this email is distributed, please go to http://disclaimer.leedsmet.ac.uk/email.htm
Navigation:
[Reply to this message]
|