Call an external PHP script on a website without using PHP
<p>My issue is following: My Partner's have websites and I want that partners can include a script from my server that dynamically generates a link and an image.</p>

<p>i.e.
myscript.php (on my server) generates following output:</p>

<pre><code>&lt;a href="http://www.myserver.com/apples.php?12345"&gt;
&lt;img src="http://www.myserver.com/images/12345.png" /&gt;
&lt;/a&gt;
</code></pre>

<p>I don't want my partners to be bothered with any php scripting, hence the best solution for now is to supply them with an iframe, where the src is the link to my script on my server that generates the output above.</p>

<p>However I clearly don't have any control over my partner's website and i.e. opening a lightbox out of the iframe certainly won't work.</p>

<p>Because of that I tried a different approach. I used Ajax to dynamically load my script, however this also doesn't work due to ajax security features (you cannot call an external script via ajax - only if you do a php workaround).</p>

<p>So basically, my question is: Is there any good solution to call <strong>my script</strong> on <strong>my server</strong> on the partner's website and display the generated code on my partner's website without the use of php?</p>
