I'm new to PHP, an I don't know the answer to your q.
A new ex:
This is my file b.php:
<head>
<title></title>
<link href="http://tonna/tonna.css" rel="stylesheet" type="text/css" title="tonna">
</head>
<body>
<script language="JavaScript1.2" src="http://tonna/cframe.js" type="text/javascript"></script>
<?php
include ($meny_url);
?>
</body>
File a.php is a menu in a frameset, where the selected url is to be stored in a variable called menu_url. Then a link opens b.php in another frameset, an the menu_url is included in b.php
File a.php may look like this:
<?php
$menu_url = "main.html";
echo ("<A HREF=\"main.php\" TARGET=\"main\">Main</A>");
?>
With this system I don't have to include the <script> in every file in the site, it only has to be included in main.php.
Hope you understand.