POV-Ray : Newsgroups : povray.off-topic : Lamp me one : Re: Lamp me one Server Time
14 Nov 2024 18:22:25 EST (-0500)
  Re: Lamp me one  
From: Warp
Date: 5 Feb 2008 09:58:14
Message: <47a87982@news.povray.org>
Invisible <voi### [at] devnull> wrote:
> And here's a small pointless toy I just developed...

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

>    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.

-- 
                                                          - Warp


Post a reply to this message

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