Today, a customer gave me a request to put an H5 page of Yiqixiu on my own Yiqixiu through a php program. But I was completely confused. . . Can anyone explain?
A master said to use file_get_contents(). I tried it and then changed to curl method
<code class="php"><?php $url = 'http://h5.eqxiu.com/s/O5KK3qDX'; $curl = curl_init(); curl_setopt($curl, CURLOPT_URL, $url); curl_setopt($curl, CURLOPT_HEADER, 1); curl_setopt($curl, CURLOPT_RETURNTRANSFER, 1); $data = curl_exec($curl); curl_close($curl); var_dump($data); 但是不行啊,错误: </code>
Today, a customer gave me a request to put an H5 page of Yiqixiu on my own Yiqixiu through a php program. But I was completely confused. . . Can anyone explain?
A master said to use file_get_contents(). I tried it and then changed to curl method
<code class="php"><?php $url = 'http://h5.eqxiu.com/s/O5KK3qDX'; $curl = curl_init(); curl_setopt($curl, CURLOPT_URL, $url); curl_setopt($curl, CURLOPT_HEADER, 1); curl_setopt($curl, CURLOPT_RETURNTRANSFER, 1); $data = curl_exec($curl); curl_close($curl); var_dump($data); 但是不行啊,错误: </code>
file_get_contents