Warning: file_get_contents(/data/phpspider/zhask/data//catemap/8/api/5.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Php 文件\u获取\u内容()无法打开流_Php_Api_Codeigniter_Error Handling_File Get Contents - Fatal编程技术网

Php 文件\u获取\u内容()无法打开流

Php 文件\u获取\u内容()无法打开流,php,api,codeigniter,error-handling,file-get-contents,Php,Api,Codeigniter,Error Handling,File Get Contents,我正试图在codeigniter web应用程序中集成完美的Money API,这是我从这个链接获得的。它在本地服务器上运行完全正常,但当将网站上载到live server时,我开始收到错误消息:file\u get\u contents:https://wrapper在服务器配置中被allow\u url\u fopen=0禁用,我已搜索过它,找不到任何解决方案。任何关于如何解决此问题的建议在php.ini中,您必须将allow_url_fopen=On设置为On。在cpanelDepends

我正试图在codeigniter web应用程序中集成完美的Money API,这是我从这个链接获得的。它在本地服务器上运行完全正常,但当将网站上载到live server时,我开始收到错误消息:file\u get\u contents:https://wrapper在服务器配置中被allow\u url\u fopen=0禁用,我已搜索过它,找不到任何解决方案。任何关于如何解决此问题的建议

在php.ini中,您必须将allow_url_fopen=On设置为On。

在cpanelDepends On version中我在哪里可以找到此php.ini,请选中/opt/cpanel/ea-php72/root/etc/php.ini。需要重新启动。这是否回答了您的问题?