php curl with CURLOPT_FOLLOWLOCATION error

后端 未结 4 778
执念已碎
执念已碎 2020-12-06 11:28

i got an error

CURLOPT_FOLLOWLOCATION cannot be activated when safe_mode is enabled or an open_basedir is set in

i google many

4条回答
  •  太阳男子
    2020-12-06 12:28

    If you specify that only http and https protocols are allowed during redirect using CURLOPT_REDIR_PROTOCOLS, you would be able to use CURLOPT_FOLLOWLOCATION without safe_mode or open_basedir.

提交回复
热议问题