Why is there no display after executing the code?
<?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?
The code cannot be sent. . . .
My computer is an apache server, do I need to set it up separately?
Send the code
<?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?
The code cannot be sent. . . .
My computer is an apache server, do I need to set it up separately?
Send the code