fix issue with php generated files with filename passed by headers