read www.php.net/variables.scope
Eric Fleming wrote:
I am having some problems using variables in included files. Can someone
please look at my code below and see how I might accomplish what I am trying
to do?
?php
$subnav = home;
include(incHeader.php);
?
!--- CONTENT AREA ---
The content
I am having some problems using variables in included files. Can someone
please look at my code below and see how I might accomplish what I am trying
to do?
?php
$subnav = home;
include(incHeader.php);
?
!--- CONTENT AREA ---
The content would go here.
!--- END CONTENT AREA ---
?php
You might want to check whether or not your header output is getting
buffered. My suggestion is a flush() after the fist call. I'm not an expert
on this, it's just an idea.
HTH
--
Ivo Fokkema
PHP MySQL programmer
Leiden University Medical Centre
Netherlands
James M. Luedke [EMAIL PROTECTED]
according to the php doc, online the headers are not affected by the
Output Buffer,
so any functions that manipulate the OB should have no effect. flush I
do not beleive
will fix this issue. (* I have tested it and it did not *)
Still need a good way to accomplish this.
Thanks, James
Ivo
4 matches
Mail list logo