WayneK
09-23-2002, 10:10 PM
Whilst attempting to beautify and simplify some code I have run into this "problem"
I cannot seem to include an external javascript file
From and included php file:
print <<< ending
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<head>
<script src="reid.js" type="text/javascript" language="Javascript"></script>
<link rel="stylesheet" href="reid.css" type="text/css">
</head>
ending;
This same code works fine outside of the secure folder.
If I put the code directly into the included file it comes out mangled in the page.
I have found the only way to use the code is to leave php, print the code and re-enter php.
Am I missing something?
I cannot seem to include an external javascript file
From and included php file:
print <<< ending
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<head>
<script src="reid.js" type="text/javascript" language="Javascript"></script>
<link rel="stylesheet" href="reid.css" type="text/css">
</head>
ending;
This same code works fine outside of the secure folder.
If I put the code directly into the included file it comes out mangled in the page.
I have found the only way to use the code is to leave php, print the code and re-enter php.
Am I missing something?