Paul on Tue, 2 Sep 2003 00:12:05 -0400


[Date Prev] [Date Next] [Thread Prev] [Thread Next] [Date Index] [Thread Index]

Re: [PLUG] Tabs


Paul wrote:

Question for Perl and/or PHP people: How could I get PHP to honor the \t in a text output from a Perl script?

In PHP I'm using shell_exec() to call the Perl script and nl2br() to convert \n to <br />. The \t is totally ignored. I don't care if the final output is text or HTML. Help?


I didn't notce this before. It looks like the tabs, or multiple spaces, are there. The browser removes all but one space as usual. Maybe I could check for \t and replace it with a few &nbsp; entities? I'm hoping there is a function for that! What else?

_________________________________________________________________________
Philadelphia Linux Users Group        --       http://www.phillylinux.org
Announcements - http://lists.netisland.net/mailman/listinfo/plug-announce
General Discussion  --   http://lists.netisland.net/mailman/listinfo/plug


  • References: