I’m using a third-party script on my site that is encoded by SourceGuardian, thus I cannot modify any of the original code. In contacting this company’s support department, they have indicated that their scripts use file_get_contents() via URLs to fetch external pages. This is currently failing. I made a little test script:
<?php $test = file_get_contents('http://www.google.com/index.html'); echo $test; ?>The output error is:
Warning: file_get_contents(): URL file-access is disabled in the server configuration in {path-to-file} on line 5
How can I work around this? Do I need to compile PHP myself? Would this even fix the problem? Are there any simpler solutions?
Thanks for any input.