PHP / BASH Basic Media Management Tool