2. DW8, upon uploading .php files with include tags, it includes everything from the included pages
Line wrote: > i just want it to upload the images or css file within that page, is there a way to prevent the included pages information from going up as well? > > -Line I'm not really sure i'm following what you are say, despite reading your question 3 or 4 times. The basic answer is: Whatever is in your included file page will upload to the page which has the include tags within it. An include file should only include the information that you want to appear in the page that is sucking in the include file, ie delete all other unecessary information from it such as <body< <html> meta tags etc. The css should be included within the global css for the page in which the include file appears within, not in the include file itself.
4. DW8, upon uploading .php files with include tags, it includes everything from the included pages
i just want it to upload the images or css file within that page, is there a way to prevent the included pages information from going up as well? -Line
5. including html files in other html files
6. Previewing .html files with .php includes
I am trying to add includes to pages for a site hosted on an Apache server that
have the file extension .html but I don't want to change any file names to .php.
All works fine live, but Dreamweaver does not preview the included file:
<? include('includes/test.html'); ?>
Is there any reason I should not include both an .asp type include and the
.php version as a workaround? Like this:
<? include('includes/test.html'); ?>
<!--#include file="includes/test.html" -->
Is this bad practice or good lateral thinking?
Your advice appreciated.
Rich
7. Including files with PHP's include() function - Adobe Dreamweaver