Core php script for multi level media processing.