Saaee
V2EX  ›  问与答

SAE PHP 环境下的 curl 是不是有点问题。

  •  
  •   Saaee · Aug 15, 2014 · 4292 views
    This topic created in 4383 days ago, the information mentioned may be changed or developed.
    本地测试没问题。
    然后传上去之后出现错误提示:Warning: curl_exec() [function.curl-exec]: Url is empty
    调试之后发现是 curl_setopt($ch, CURLOPT_RETURNTRANSFER, true); 这条设置导致的。
    从来没遇到过这个问题。。谁懂的能讲下么。本地环境是没问题的。
    1 replies    2014-08-15 10:21:52 +08:00
    iyaozhen
        1
    iyaozhen  
       Aug 15, 2014
    curl貌似是被限制了。要用SAE自己提供的方法。
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Solana   ·   2814 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 26ms · UTC 15:00 · PVG 23:00 · LAX 08:00 · JFK 11:00
    ♥ Do have faith in what you're doing.