You are here: Re: How to remove blanks at runtime?? « PHP Programming Language « IT news, forums, messages
Re: How to remove blanks at runtime??

Posted by Andy Hassall on 10/07/06 22:59

On 7 Oct 2006 14:51:36 -0700, Hermann.Richter@gmail.com wrote:

>Is there any way to remove automatically all blank chars from the html
>sent to the client??
>
>Example:
>----------------------------------------------------------------
><?
>echo "HTML tags here<br>" ;
>?>
>more HTML here
><div>
> <div>
> Some text
> </div>
></div>
>
><?
>----------------------------------------------------------------
>
>after running this php script the client should receive:
>----------------------------------------------------------------
>HTML tags here<br>
>more HTML here
><div>
><div>
>Some text
></div>
></div>
>----------------------------------------------------------------
>
>Is there any option in PHP to do this automatically??

Not built-in, but you could use output buffering and modify the contents of
the buffer as it's output.

http://uk2.php.net/manual/en/ref.outcontrol.php

--
Andy Hassall :: andy@andyh.co.uk :: http://www.andyh.co.uk
http://www.andyhsoftware.co.uk/space :: disk and FTP usage analysis tool

 

Navigation:

[Reply to this message]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация