changed fopen+fread+fwrite with file_put_contents()
Merge pull request #49 from emanwebdev/patch-8

changed fopen+fread+fwrite with file_put_contents()