I have a test.php in same dir, a test.js in same dir and the js works, the php does not. I tried the test.php and that actually prints. The test.php has the very simple lines:
Code: Select all
<?php
echo("Hello World");
?>
Code: Select all
<html>
<head>
</head>
<body style="background-color:#fff;margin:0">
<div style="border-top:1px solid #404040">
1. JS: source file <br />
<script type="text/javascript" src="test2.js"/>
</script>
<br />----<br />
2. PHP: source file<br />
<script type="text/javascript" src="test.php"/>
</script>
<br />----<br />
3. JS: script inside<br />
<script type="text/javascript">
document.write('<b></br></br>Hello World</br></b>');
</script>
<br />----<br />
4. PHP: script inside <br />
<script type="text/php">
echo("Hello World");
print "hello world";
</script>
<br />----<br />
</div></div></body></html>