Re: [PHP] Adding includes to files

2004-04-22 Thread John W. Holmes
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

Re: [PHP] Adding includes to files

2004-04-22 Thread Richard Harb
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') ?

RE: [PHP] Adding includes to files

2004-04-22 Thread Robert Sossomon
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

RE: [PHP] Adding includes to files

2004-04-22 Thread Robert Sossomon
]; [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