Invisible <voi### [at] devnull> wrote:
> Warp wrote:
> > Don't mix HTML and PHP. That's just asking for maintenance nightmares.
> I thought that was the design goal of PHP?
Maybe it was, but in practice it's usually a bad idea. I have seen
horrible, horrible examples.
This may be an acceptable exception:
<?php
... lots of PHP code here
?>
<html>
...
<?php (something which calls the code above) ?>
...
</html>
> > You don't need to make a separate 'echo' for each of those things.
> You do if you only have a 40x40 character text window and a text editor
> which malfunctions on long lines...
No you don't:
echo
'hello ' .
$user .
", how are you?\n";
At least it saves you from writing 'echo' a million times.
--
- Warp
Post a reply to this message
|