You are here: Re: Selective rendering of part of a page « PHP Programming Language « IT news, forums, messages
Re: Selective rendering of part of a page

Posted by Geoff Berrow on 12/23/06 11:11

Message-ID: <BIedncwyzLVbaRHYnZ2dnUVZ8qCqnZ2d@bt.com> from Paul E
Collins contained the following:

><p>Anybody can see this paragraph.</p>
><? start_protected_section($got_permission); ?>
><p>Not everybody can see this paragraph.</p>
><? end_protected_section(); ?>
>
>Is it possible to disable the rendering of a section outside the code
>like this (perhaps by setting a PHP flag to redirect subsequent
>output)? I don't really want to complicate things by moving part of
>the page into a separate "include file" or mixing the HTML and PHP by
>using a here-document (the <<<END syntax).
<?php
if($condition){
?>
protected html here
<?php
}
?>

--
Geoff Berrow (put thecat out to email)
It's only Usenet, no one dies.
My opinions, not the committee's, mine.
Simple RFDs http://www.ckdog.co.uk/rfdmaker/

 

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

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