estoy usando mi file_get_contents en PHP y que arroja algunos errores:file_get_contents() Error
Mi código
#try to fetch from remote
$this->remotePath = "http://some-hostname.com/blah/blah.xml
$fileIn = @file_get_contents($this->remotePath);
Los errores:
Warning: file_get_contents() [function.file-get-contents]: URL file-access is disabled in the server configuration in /virtual/path/to/file/outputFile.php on line 127
Warning: file_get_contents(https://some-host-name/data/inputFile.xml) [function.file-get-contents]: failed to open stream: no suitable wrapper could be found in /virtual/path/to/file/outputFile.php on line 127
Alguna idea? Funcionó bien en mi computadora, pero dejó de funcionar cuando lo transferí al servidor web.
Por cierto, dado que desea cargar xml, use la función simplexml_load_file, después de configurar allow_url_fopen. –