i tried
-------------------------------- index.php:
$out='todo 1';
include 'file1.php';
$out='todo 2';
include 'file1.php';
echo 'end';
-------------------------------- file1.php:
include_once 'file2.php';
if(isset($out)){
echo $out;
}
-------------------------------- file2.php:
$out='first todo once';
include 'file.php';
the output is:
first todo once
first todo once
todo 2
what should i do?
if i would replace in file2.php include with include_once, then i have following output:
first todo once
todo 2
i could write
$out='first todo once';
include 'file1.php'
$out='todo 1';
include 'file1.php';
$out='todo 2';
include 'file1.php';
but i don't want :-)
please help