changed fopen for file_get_contents
deleted fopen