I would like to be able to serve content to my clients' websites, using javascript. The content I would like to serve is generated from PHP on my server. I've seen people do this using code like this, that is placed on the client site: <script type="text/javascript" language="javascript" src="http://www.mydomain.com/page.php?id=15&id=123456"> What do I need to have on my server in order for the content to be displayed on their site?
page.php?id=15&id=123456 just needs to generate a .js file - send the correct header for JS, and make sure you start and end with js script tags