Can I source a php file as javascript?
<p>I am using a WP template that allows me to incorporate arbitrary HTML.  Unfortunately, I have to use this particular widget and can't use other WP widgets.</p>

<p>I have on my webserver /some/path/serve_image.php that spits out a random HREF'd IMG SRC with a caption and some other info from a MySQL query.</p>

<p>Now...how can I say "take that output and treat it as HTML"?  If I just put "/some/path/serve_image.php" I get that literal string.</p>

<p>I tried:</p>

<pre><code>&lt;script type="javascript" src="/some/path/serve_image.php"&gt;&lt;/script&gt;
</code></pre>

<p>but that didn't work.  I tried changing everything in serve_image.php to be document.write() calls and that didn't seem to work either.  I'm not the world's greatest JS guy...</p>

<p>So if I have a URL on the net that spits out some HTML and I want to include that HTML in my web page, what's the best way to do that?  Sort of like what Google does with Adsense - you source their show_ads.js.</p>
