It should be
$_SERVER['DOCUMENT_ROOT']
which will give you www root path, is that where the "nink" folder is?
If the nink folder is located in the same folder as the php script, then
./nink/hai.txt
is suffice.
<textarea name="text" rows="25" cols="100">
= "./nink/hai.txt"= fopen($path,
</textarea>