国产探花免费观看_亚洲丰满少妇自慰呻吟_97日韩有码在线_资源在线日韩欧美_一区二区精品毛片,辰东完美世界有声小说,欢乐颂第一季,yy玄幻小说排行榜完本

首頁 > CMS > Ecshop > 正文

ECSHOP出現Call to undefined function insert_getlist_ads()

2024-07-09 22:56:40
字體:
來源:轉載
供稿:網友
ECSHOP出現Call to undefined function insert_getlist_ads()的解決方法如下:

curl_init -- 初始化一個CURL會話,如果提示Call to undefined function curl_init那么需要如下操作即可。
在網上下載了一個模擬登陸discuz論壇的php程序范例,試運行時出現“Call to undefined function curl_init”這個錯誤提示,沒有定義的函數,也就是php還沒打開對curl_init函數的支持。Google了一番終于解決了,方法如下:

  以windows下的php+apache為例。

  首先,打開php.ini,找到“extension=php_curl.dll”,然后去掉前面的“;”注釋,重啟apache即可。

  如果還出現此類問題,先檢查php.ini的extension_dir值是哪個目錄,在那個目錄下檢查有無php_curl.dll,沒有的話請下載php_curl.dll,再把php目錄中的libeay32.dll和ssleay32.dll拷到c:/windows/system32里面,重啟apache,OK!

在Ubuntu 下運行php,總是提示Call to undefined function curl_init(),原因沒有安轉:php5-curl

與curl相關的內容見:http://packages.ubuntu.com/zh-cn/intrepid/php5-curl

CURL is a library for getting files from FTP, GOPHER, HTTP server.

PHP5 is an HTML-embedded scripting language. Much of its syntax is borrowed from C, Java and Perl with a couple of unique PHP-specific features thrown in. The goal of the language is to allow web developers to write dinamically generated pages quickly. This version of PHP5 was built with the Suhosin patch.

H1>

(PHP 4 >= 4.0.2)

curl_init -- 初始化一個CURL會話

描述  

int curl_init ([string url])  

curl_init()函數將初始化一個新的會話,返回一個CURL句柄供curl_setopt(), curl_exec(),和 curl_close() 函數使用。如果可選參數被提供,那么CURLOPT_URL選項將被設置成這個參數的值。你可以使用curl_setopt()函數人工設置。
例 1. 初始化一個新的CURL會話,且取回一個網頁

<?php
$ch = curl_init();

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

curl_exec ($ch);

curl_close ($ch);
?>


參見:curl_close(), curl_setopt()
發表評論 共有條評論
用戶名: 密碼:
驗證碼: 匿名發表
主站蜘蛛池模板: 澄江县| 广水市| 北川| 信丰县| 九寨沟县| 罗山县| 辽宁省| 黄陵县| 宁化县| 稻城县| 乳源| 庆城县| 昌都县| 杭州市| 平邑县| 镇赉县| 永年县| 方山县| 离岛区| 美姑县| 常州市| 舟山市| 古蔺县| 井陉县| 青川县| 绥江县| 平乡县| 晋州市| 长春市| 德保县| 双牌县| 错那县| 新安县| 肥城市| 朝阳县| 梧州市| 靖州| 成安县| 马龙县| 万全县| 体育|