search

Home  >  Q&A  >  body text

Why is there no display after executing the code?

Why is there no display after executing the code?

安超安超795 days ago1132

reply all(5)I'll reply

  • 安超

    安超2022-11-07 14:33:45

    <?php

    $url = "https://www.jacgoo.com";

    $arr ​​= file($url);print_r($arr);

    $ch = curl_init();

    curl_setopt($ch,CURLOPT_URL,$url);

    $html - curl_exec($ch);

    if(curl_errno($ch)){

    echo 'Errno'.curl_error($curl);}

    curl_close($ch);

    print_r($html) ;?>

    My server is apache, do I need to set it up separately?

    reply
    0
  • 安超

    安超2022-11-07 14:30:52

    The code cannot be sent. . . .

    reply
    0
  • 安超

    安超2022-11-07 14:29:44

    My computer is an apache server, do I need to set it up separately?

    reply
    0
  • 大瓶可乐@php.cn

    大瓶可乐@php.cn2022-11-07 13:44:42

    Send the code

    reply
    0
  • 安超

    My server is apache, do I need to set it up separately?

    安超 · 2022-11-07 14:37:09
  • Cancelreply