Save snapshots as php files to prevent them from downloading; Improve error messages