There are hosts who give you PHP (or another server side language, Perl or ASP comes to mind). I use this:
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27
| <?php
header("Content-type: application/x-java-jnlp-file"); print("<?xml version=\"1.0\" encoding=\"utf-8\"?>\n"); ?> <jnlp spec="1.0+" codebase="http://thisistheurl.com/file/Sokoban4k" href="Sokoban4k.jar"> <information> <title>Sokoban4k</title> <vendor>Kent Larsson</vendor> <homepage href="http://thisistheurl.com/2005/12/13/sokoban4k/" /> <description>A Sokoban clone with 95 levels called Sokoban4k. You control the red circle using the arrow keys. Restart current level using R and skip to next level using N. The goal of the game is to push all suns into the marked floor squares on every level. Enjoy!</description> <offline-allowed /> </information> <resources> <j2se version="1.4.2+" /> <jar href="Sokoban4k.jar" /> </resources> <?php ?> <application-desc main-class="H" /> </jnlp> |
Use it if you like, I might have taken it from someone else as well. (Can't remember.)
