[Javascript] echo value padded with spaces?

diego nunes dnunes at gmail.com
Tue May 6 06:12:16 CDT 2008


On 5/5/08, Skip Evans <skip at bigskypenguin.com> wrote:
> (...)
>  The echoed value 'false' is now coming through
>  with space padded on the left side.
>
>  Can anyone explain this to me???

    Although this question is not abot JavaScript (off-topic?), I can
suggest you to debug it in steps: first of all, check if there is no
spaces before you start your "<?php" and if you are using the right
encoding (UTF-8 withouth BOM, please). BOM sometimes 'cause trouble in
PHP, which is not very prepared to use that, yet.
    If the above don't help to find/solve the problem try putting a
simple "die('mimi');" in different places in the code (try in the very
first php line and go down on the code until the desired "echo") to
see where this space are being inserted.

  Amplexos.

-- 
diego nunes
dnunes.com



More information about the Javascript mailing list