This code was sent to me by my classmate
<?php $ch = curl_init("http://www.baidu.com");//初始化 curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1); curl_setopt($ch, CURLOPT_HEADER, 0); $output = curl_exec($ch); curl_close($ch); echo $output; ?>
Exactly the same code, I pasted his code and it ran smoothly, but I typed it by hand and it ran fine
Excuse me, what’s going on? Thank you :-)