This is just test of something but it should work, right? (yes, jquery.js in the same directory as this php file. And this is also on Linux if that matters)
Code:
<script src="jquery.js"></script>
<script>
function myFunction() {
$.GET("otherphpfile.php");
return false;
}
</script>
<?php
print"
<script>
myFunction();
</script>
";
?>