Downloading of file with native php functions.