POV-Ray : Newsgroups : povray.off-topic : Lamp me one : Re: Lamp me one Server Time
10 Oct 2024 21:16:33 EDT (-0400)
  Re: Lamp me one  
From: Invisible
Date: 5 Feb 2008 10:04:38
Message: <47a87b06@news.povray.org>
Warp wrote:

>   Don't mix HTML and PHP. That's just asking for maintenance nightmares.

I thought that was the design goal of PHP?

[Er, to be mixed with HTML, that is.]

>>    echo '<tr><td align="center">‘<code>';
>>    echo htmlspecialchars($symbol);
>>    echo '</code>’</td><td align="right">';
>>    echo $count;
>>    echo '</td><td align="right">';
>>    echo (int)($count / strlen($in) * 100);
>>    echo '%</td><td align="right">';
>>    echo abs(log($count / strlen($in)) / log(2));
>>    echo '</td></tr>';
>>    echo "\n";
> 
>   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...

-- 
http://blog.orphi.me.uk/
http://www.zazzle.com/MathematicalOrchid*


Post a reply to this message

Copyright 2003-2023 Persistence of Vision Raytracer Pty. Ltd.