Re: passthru

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

 



Does anyone know way to passthru man pages so they don't show the ascii formating?

You could:

1) Replace all newlines (ASCII 10) with a <br> tag. htmlspecialchars()
   will do this for you.
2) Use a <pre> tag within which newlines are preserved
3) Use preg_replace to replace non-printable characters (Can't remember
   how exactly, but everything you need is in the manual - you will want
   to strip everything from ASCII 1 - ASCII 32. IIRC.

--
Richard Heyes
+44 (0)844 801 1072
http://www.websupportsolutions.co.uk

Knowledge Base and HelpDesk software
that can cut the cost of online support

--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


[Index of Archives]     [PHP Home]     [Apache Users]     [PHP on Windows]     [Kernel Newbies]     [PHP Install]     [PHP Classes]     [Pear]     [Postgresql]     [Postgresql PHP]     [PHP on Windows]     [PHP Database Programming]     [PHP SOAP]

  Powered by Linux