data.phpを呼び出せばいいんでしょ?
<script type="text/javascript" scr="http://example.com/data.php?key=hoge"></script>