in reply to Re^2: Problem in creating Directory
in thread problem in mkdir

You've reported at least two completely different errors in this thread, "file exists", and "permission denied". For "permission denied", do this:
ls -ld /var/www/html/piRNA_html/UNAFold/output

What are the permissions on the directory? Do you (or the user this script is running under) have write permission in the directory?