Ooops, I may be in wrong forum.
Thank you very much 'felgall'.
I may didn't make it clear.
I've already did that part in my html page.
Also I changed my php file as below;
Code:
<?php
Header("content-type: application/x-javascript");
function myfunction()
{
return $something;
}
$some_variable=$something;
echo "document.write('$poll['options'][$i]['vote_option_text']');";
?>
When called remotely by javaScript, I included this in my html page as below;
Code:
<script> type="text/javascript" src="http://www.mydomain.com/myfile.php"></script>
But then problem is as my first post.
Help please.
Thank you in advance