added additional php parsing functionality, and begin addressing performance issues when a user stops a large file download