newbie question
Posted: Thu Jun 13, 2002 2:07 am
I have pure php in my include file. Do I have to have / is it allowed to have. <?php and ?> tags in my include file? Include code looks like this:
<?php
require_once 'all_fun.php';
?>
And all_fun.php like this
<?php
all_fun_contentshere
?>
If I understand correctly PHP outputs everything from my include file to the place where require_once is called... So the code is effectively like this?
<?php
<?php
all_fun_contentshere
?>
?>
Someone said to me that include files must have those tags too, but i think that they are futile, perhaps even a mistake? What PHP does when it encounters nested php tags?
thanks for the info
-9902468
<?php
require_once 'all_fun.php';
?>
And all_fun.php like this
<?php
all_fun_contentshere
?>
If I understand correctly PHP outputs everything from my include file to the place where require_once is called... So the code is effectively like this?
<?php
<?php
all_fun_contentshere
?>
?>
Someone said to me that include files must have those tags too, but i think that they are futile, perhaps even a mistake? What PHP does when it encounters nested php tags?
thanks for the info
-9902468