工作时,工作说:
ErrorException:file_get_contents():在服务器配置中,通过/home/mmicube/public_html/app/Jobs/ProcesarPeliculas.php:33中的allow_url_fopen = 0禁用了https://包装器: 0 [内部功能]:Illuminate \ Foundation \ Bootstrap \ HandleExceptions-> handleError(2,'file_get_conten ...','/ home / mmicube / p ...',33,Array) 1 /home/mmicube/public_html/app/Jobs/ProcesarPeliculas.php(33):file_get_contents('https://api.the ...') 还有更多...
但是,如果我尝试一页(没有工作),则file_get_contents()
很好。为什么?
我配置了PHP ea-php70:
allow_url_fopen = On
allow_url_include = On
display_errors = Off
enable_dl = Off
file_uploads = On
max_execution_time = 30
max_input_time = 60
max_input_vars = 1000
memory_limit = 32M
post_max_size = 8M
session.gc_maxlifetime = 1440
session.save_path = "/var/cpanel/php/sessions/ea-php72"
upload_max_filesize = 2M
zlib.output_compression = Off
我尝试使用http和https,但没有任何效果。
我在Cpanel和ea-php70上使用Centos7.5。
phpinfo()
: