>- put the following in file.php
><?php
>// text/javascript, not text/html
>header("Content-type: text/javascript");
>
>// your script
>?>
>
>- don't link to file.php, but to file.php/javascript.js
I have just tried that, but it doesn't seem to work? When I try this
http://yourclips.localhost/javascript.php/javascript.js
I get a server 500 error.
This
http://yourclips.localhost/javascript.php
pops up a download dialog box...
Any ideas?
Thanks!
Peter