Php Legacy Code Example