This is a script I have made to draw a Nurikabe puzzle from a text file that indicates where the numbers go. I plan to change it so it uses PHP instead of JavaScript.
Go to Nikoli.com to learn how to play Nurikabe.