gpt4 book ai didi

CURLOPT_FOLLOWLOCATION 无法激活

转载 作者:IT王子 更新时间:2023-10-29 00:11:54 25 4
gpt4 key购买 nike

所以我在多个服务器上不断收到这个烦人的错误(这是一个警告,所以我会忽略它,但我需要这个功能)

Warning: curl_setopt() [function.curl-setopt]: CURLOPT_FOLLOWLOCATION cannot be activated when safe_mode is enabled or an open_basedir is set in /home/xxx/public_html/xxx.php on line 56

我该如何通过 SSH 解决这个问题?

最佳答案

在您的 php.ini 文件中设置 safe_mode = Off(通常在服务器的/etc/中)。如果已经关闭,则在 php.ini 文件中查找 open_basedir 内容,并相应地进行更改。

基本上,作为一项安全措施,跟随位置选项已被禁用,但 PHP 的内置安全功能通常比安全更烦人。事实上,safe_mode is deprecated in PHP 5.3 .

关于CURLOPT_FOLLOWLOCATION 无法激活,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/6918623/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com