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