Hi,
I know this is probably too basic a question, but I've gone all over the web. Perhaps what I want is covered in basic php- or not, I don't know. I'm new at this.
Problem:
I want to install a java menu on a wiki. The wiki has a LocalSettings.php file, and I put in require_once("includes/call_js.php");
This works to get it to go to the file. What I want to do, is to call up (and have work, heh) two files required for the java menu
/skins/common/menu_com.js
/skins/common/exmplmenu_var.js
I don't know how to call them from a php script. I've looked all over for how to do this, but everything I find is about calling php from java, not the other way around. And there is absolutely nothing about doing it on a wiki.
Perhaps I'm going about it completely the wrong way. The js menu is just supposed to work by having this in the html body:
<script type='text/javascript'>
//HV Menu- by Ger Versluis (
http://www.burmees.nl/)
//Submitted to Dynamic Drive (
http://www.dynamicdrive.com)
//Visit
http://www.dynamicdrive.com for this script and more
function Go(){return}
</script>
<script type='text/javascript' src='exmplmenu_var.js'></script>
<script type='text/javascript' src='menu_com.js'></script>
<noscript>Your browser does not support script</noscript>
Trying to get the javascript directly from LocalSettings allows the page to load, but also gives this (and doesn't get the menu):
Warning: Cannot modify header information - headers already sent by ([pathname was here]call_js.js:1) in [pathname]WebResponse.php on line 10
Anyway, if anyone who knows about wikis and would like to write an answer, I think it might be the only one on the web, and would help a lot of people besides me.