阅读背景:

PHP Curl在某些情况下工作,而不是在某些情况下工作

来源:互联网 

This Code is Working Well

本准则运作良好

  <?php 
            // create curl resource 
            $ch = curl_init(); 

            // set url 
            curl_setopt($ch, CURLOPT_URL, "https://ipdev.in/"); 

            //return the transfer as a string 
            curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1); 

            // $output contains the output string 
            $output = curl_exec($ch); 
            echo $output;
            // close curl resource to free up system resources 
            curl_close($ch);      
    ?>
  <?php 



你的当前访问异常,请进行认证后继续阅读剩余内容。

分享到: