Answered
css and php include
I have a dreamweaver template which has the following include
to a php file in the first few lines.
<?php
include "../public_html/code/db.php";
?>
The template also includes a couple of css style sheets of the format
<link href='../public_html/css/na_style_scr.css' rel='stylesheet' type='text/css' media='screen'>
When I save documents from this template in different folders of the site, the include link was not updating, so I updated teh template as below
<?php
include ("../../code/db.php");
?>
Now the documents can be saved anywhere in the site and the link is correct, but when I view the document in dreamweaver, the file appears as though there is no stylesheet. The file appears correct on the testing server.
Has anyone come accross this before, or can anyone suggest a solution to this?
Many thanks
Patch
<?php
include "../public_html/code/db.php";
?>
The template also includes a couple of css style sheets of the format
<link href='../public_html/css/na_style_scr.css' rel='stylesheet' type='text/css' media='screen'>
When I save documents from this template in different folders of the site, the include link was not updating, so I updated teh template as below
<?php
include ("../../code/db.php");
?>
Now the documents can be saved anywhere in the site and the link is correct, but when I view the document in dreamweaver, the file appears as though there is no stylesheet. The file appears correct on the testing server.
Has anyone come accross this before, or can anyone suggest a solution to this?
Many thanks
Patch