If it is just about a local page and script then this might help , just made a very little example and a bit incomplete :
create in "your homedir" as example 2 files aap.html and noot.php
aap.html:
Code:
<!DOCTYPE html>
<script>
function Justjava()
{
alert("Hello World!");
return true;
}
function Justphp()
{
window.open ("file://home/"SOME-USER"/noot.php");
return true;
}
</script>
<body>
<button onclick="Justjava()" type="button">Click Me! java</button>
</br></br>
<button onclick="Justphp()" type="button">Click Me! php</button>
</body>
</html>
and noot.php :
Code:
<?php
// Show all information, defaults to INFO_ALL
phpinfo();
?>
Load aap.html and see if you get the picture.
Bookmarks