file_get_contents($url, 0, 
                    stream_context_create(
                        array(
                            'http' => array(
                                'timeout' => 30,
                                'method' => 'POST',
                                'content' => $fields
                            )
                        )
                    )
               );
       echo  2222;exit;
请求确认已经发送成功,可是程序没法往下执行了 222没法打印

解决方案 »

  1.   

    因为是用file_get_content  转发 app通知  app通知已经收到了  可以是程序却没法往下执行了 错误开启了 没有任何返回值
      

  2.   

    file_get_contents执行发送后出错。可以把file_get_contents的返回值输出看看。把错误提示也打开看看ini_set('display_erros','on');
    error_reporting(E_ALL);$log = file_get_contents(xxxx);
    echo $log;