added header check for post creation for live (if headers already sent stop script)