Home > Backend Development > PHP Tutorial > php: Solution to Call to undefined function curl_init()

php: Solution to Call to undefined function curl_init()

WBOY
Release: 2016-07-25 09:05:17
Original
1054 people have browsed it
  1. $ch = curl_init();

  2. curl_setopt ($ch, CURLOPT_URL, "http://www.zend.com/");

  3. curl_setopt ($ch, CURLOPT_HEADER, 0);

  4. curl_exec ($ch);

  5. curl_close ($ch);

  6. ?>
复制代码

参见:curl_close(), curl_setopt()



source:php.cn
Statement of this Website
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
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template