added mysql socket to php scripts, added more error checking during nfo processing