Have you enabled allow url fopen function?