I am new to PHP and Apache. I am trying to use the include function to
include a file that has my web page header and menu, similar to what I used
to do with SSI.
The content of the include file doesn't display. Instead, I get a link that
says function.main and below that I get a link that
Dave Adler wrote:
I am new to PHP and Apache. I am trying to use the include function to
include a file that has my web page header and menu, similar to what I
used
to do with SSI.
The content of the include file doesn't display. Instead, I get a link
that
says function.main and below that
Richard,
Thanks for the feedback. The reference to the file location was the problem.
My include statement was
include(/includes/menu.inc);
I changed it to
include ($_SERVER[DOCUMENT_ROOT]./includes/menu.inc);
This solved the problem.
David
Richard Lynch [EMAIL PROTECTED] wrote in
3 matches
Mail list logo