Hi,

is there an workaround to open blocks (e.g after an if condition) in the
first include and close this block in another? with the curly brace i get
parse errors.

I want to do this:

startblock.inc:
********************
<?php
if ( !$iPageRight ) {
  echo "<p class=\"fError\">access denied!</p>";
} else {
?>
********************

endblock.inc
********************
<?php
}
?>
********************

main.php
********************
<?php
$iPageRight  = TRUE;
include ("startblock.inc");

  echo "<p class=\"fText\">this is the content!</p>";
include ("endblock.inc");
?>
********************



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

Reply via email to