From: Robert Sossomon [EMAIL PROTECTED]
I need to add PHP calls to include a file to each page as it is
generated, the only thing is I can't get the includes to come through
correctly:
! Code
$display_block .= ?php include(\nav/top_nav.html\); ?;
$display_block .= ?php
You could either include the files without assigning the contents to a
variable - but that would display those right away:
?php include('nav/top_nav.html'); ?
or you could read the contents of the file like:
?php $display_block .= is_readable('nav/top_nav.html') ?
Message-
From: John W. Holmes [mailto:[EMAIL PROTECTED]
Sent: Thursday, April 22, 2004 11:33 AM
To: [EMAIL PROTECTED]; [EMAIL PROTECTED]; [EMAIL PROTECTED]
Subject: Re: [PHP] Adding includes to files
From: Robert Sossomon [EMAIL PROTECTED]
I need to add PHP calls to include a file to each page
]; [EMAIL PROTECTED]
Subject: Re: [PHP] Adding includes to files
You could either include the files without assigning the contents to a
variable - but that would display those right away:
?php include('nav/top_nav.html'); ?
or you could read the contents of the file like:
?php $display_block
4 matches
Mail list logo