You are here: Re: limit output to only php print/echo statements? « PHP Programming Language « IT news, forums, messages
Re: limit output to only php print/echo statements?

Posted by ken on 04/16/07 17:21

Mary Pegg wrote:
> ken wrote:
>
>> is there a way to make a php page only output content that is generated
>> from php statements, such as print, or echo? ie: if I have whitespace
>> (or other text) outside my <?php .... ?> block i do not want that to be
>> returned.
>>
>> of course i can do this by making sure my php file starts with <?php and
>> ends with ?> and there is no leading or trailing whitespace.
>
> Make sure there's no leading whitespace (which is pretty obvious) and
> simply leave off the ?> at the end.
>
great suggestion. totally works.
thanks!
ken

 

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

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