I've just recently started coding in PHP and I've come across a problem I can't figure out(with my luck it's a simple solutions I've looked over). I've written an include file for the header of my pages that includes a link to an external javascript file similar to this:
<head>
<title>yadda yadda</title>
<script language="JavaScript1.2" src="javafile.js" type="text/javascript" />
</head>
and so on.
The first few lines of the page calling the include file are:
<?
include("header.inc");
?>
Now the problem. When I preview my page the .js file isn't getting processed and all the functions I've declared in the .js file will not work on the page(Hope this made since).
Lots of errors and loss of functionality of my pages is not making me comfortable with the use of PHP. I can add the link to the external .js in the main page but then I'll end up coding just as much as I would've without PHP and since this is the reason I started using PHP I'm hoping there's a solution.
Any help would be much appreciated.