Home  >  Article  >  Backend Development  >  Does anyone know if there is any way to put an H5 page of Yiqixiu on your own Yiqixiu through a php program?

Does anyone know if there is any way to put an H5 page of Yiqixiu on your own Yiqixiu through a php program?

WBOY
WBOYOriginal
2016-08-04 09:19:281254browse

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>

Does anyone know if there is any way to put an H5 page of Yiqixiu on your own Yiqixiu through a php program?

Reply content:

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>

Does anyone know if there is any way to put an H5 page of Yiqixiu on your own Yiqixiu through a php program?

file_get_contents

Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn