dousuitang5239 2012-06-23 05:13
浏览 16

too long

I am executing curl post process in php to get response page content. i get this error

Warning: curl_setopt() [function.curl-setopt]: CURLOPT_FOLLOWLOCATION cannot be activated when in safe_mode or an open_basedir is set in /var/www/domain/httpdocs/housesearch.php on line 58

I followed several instruction like htaccess modification by adding below code in htaccess file

php_flag safe_mode off
php_flag open_basedir off
php_value open_basedir none

but again i had the same error.Can any one help me?

  • 写回答

1条回答 默认 最新

  • drot98385 2012-06-26 15:30
    关注

    This is one of the best comment's I've read in the PHP.Net manual. It explains why the issue is occurring, but not necessarily why.

    When you use php_flag or php_value to change a setting, you are not changing the setting at the heart of PHP, rather at runtime. As a result, some settings cannot be detected or decoded by 3rd party API's or extensions.

    You need to either make a hard change to your php.ini file, remove the open_basedir directive or use the 3rd party function included in the link above.

    评论

报告相同问题?

悬赏问题

  • ¥15 微信会员卡等级和折扣规则
  • ¥15 微信公众平台自制会员卡可以通过收款码收款码收款进行自动积分吗
  • ¥15 随身WiFi网络灯亮但是没有网络,如何解决?
  • ¥15 gdf格式的脑电数据如何处理matlab
  • ¥20 重新写的代码替换了之后运行hbuliderx就这样了
  • ¥100 监控抖音用户作品更新可以微信公众号提醒
  • ¥15 UE5 如何可以不渲染HDRIBackdrop背景
  • ¥70 2048小游戏毕设项目
  • ¥20 mysql架构,按照姓名分表
  • ¥15 MATLAB实现区间[a,b]上的Gauss-Legendre积分