我正在使用file_get_contents('http://example.com');
我得到了错误
'function.file-get-contents'>function.file-get-contents</a>]: URL file-access is disabled in the server configuration in 我知道我必须在php文件中启用allow_url_fopen。问题是我在一个共享服务器上,我是否有访问权限,即ftp,但我找不到文件的位置
发布于 2012-04-21 12:05:21
不幸的是,如果allow_url_fopen被禁用,您将无法启用它。只有根用户可以编辑控制该设置的php.ini文件。
您可以请求您的主机启用它,或者查看共享服务器上是否启用了cURL。
https://stackoverflow.com/questions/10256060
复制相似问题