It did not work because it took the URL of the script as "src" instead of taking the out put as "src". I also used these methods:
PHP Code:
<?php
include("http://localhost/workshop/script.php");
?>
PHP Code:
<?php
include("../workshop/script.php");
?>
Code:
<script language="php" src="http://localhost/workshop/script.php">
</script>
but none of them was successfuly work. Thank you for your try