Forum Moderators: phranque
Please define "outside the main stream of the site."
The answer also depends on what is to be included, that is, whether it is meta-data to be added to the <head> section of your HTML pages, or content to be included in the <body> of those pages.
Jim
I use .htaccess to set the action of a file that is text/html. The thing I can't do is seem to once executed the script in the Action is to just continue to read the HTML file that was called initially.
For example, I set the ACTION in the .htaccess then load up an HTML file in the browser. That then gets passed to the file called in the ACTION which I use a PHP file. In this I can do the includes and/or other formatting for a compulary include.
Is this the best way to achieve this result?
Also, if this is a good way, how can I just exit the action and continue the reading of the initial file?
To answer your question Jim, I'm using HTML, PHP, .htaccess and includes.
Hope you can help. Thanks!
Andy.
<p>This is my plain HTML.</p>
<?
print("Hello world! -- Greetings from your friendly neighborhood PHP interpreter!");
?>
<p>This is more plain HTML.</p>
Jim