2012-09-05 17 views
12

का उपयोग इंटरनेट से डाउनलोड किए गए स्रोत कोड को चलाने पर मुझे यह त्रुटि मिलती है। इसे कैसे जोड़ेंगे? ऐसा लगता है कि PHP संस्करण समस्या है। मैं PHP 5.3 का उपयोग करता हूं।अपरिभाषित निरंतर

[Wed Sep 05 20:31:40 2012] [error] [client 127.0.0.1] PHP Notice: Use of undefined constant CURLOPT_RETURNTRANSFER - assumed 'CURLOPT_RETURNTRANSFER' in /home/hieugioi/Workspace/PHP/Couponic/protected/modules/location/worklets/WLocationHelper.php on line 209 
[Wed Sep 05 20:31:40 2012] [error] [client 127.0.0.1] PHP Notice: Use of undefined constant CURLOPT_CONNECTTIMEOUT - assumed 'CURLOPT_CONNECTTIMEOUT' in /home/hieugioi/Workspace/PHP/Couponic/protected/modules/location/worklets/WLocationHelper.php on line 210 
[Wed Sep 05 20:31:40 2012] [error] [client 127.0.0.1] PHP Notice: Use of undefined constant CURLOPT_TIMEOUT - assumed 'CURLOPT_TIMEOUT' in /home/hieugioi/Workspace/PHP/Couponic/protected/modules/location/worklets/WLocationHelper.php on line 211 
[Wed Sep 05 20:31:40 2012] [error] [client 127.0.0.1] PHP Notice: Use of undefined constant CURLOPT_FAILONERROR - assumed 'CURLOPT_FAILONERROR' in /home/hieugioi/Workspace/PHP/Couponic/protected/modules/location/worklets/WLocationHelper.php on line 212 
[Wed Sep 05 20:31:40 2012] [error] [client 127.0.0.1] PHP Fatal error: Call to undefined function curl_init() in /home/hieugioi/Workspace/PHP/Couponic/framework/uniprogy/extensions/curl/CURL.php on line 22 
[Wed Sep 05 20:33:15 2012] [error] [client 127.0.0.1] PHP Notice: Use of undefined constant CURLOPT_RETURNTRANSFER - assumed 'CURLOPT_RETURNTRANSFER' in /home/hieugioi/Workspace/PHP/Couponic/protected/modules/location/worklets/WLocationHelper.php on line 209 
[Wed Sep 05 20:33:15 2012] [error] [client 127.0.0.1] PHP Notice: Use of undefined constant CURLOPT_CONNECTTIMEOUT - assumed 'CURLOPT_CONNECTTIMEOUT' in /home/hieugioi/Workspace/PHP/Couponic/protected/modules/location/worklets/WLocationHelper.php on line 210 
[Wed Sep 05 20:33:15 2012] [error] [client 127.0.0.1] PHP Notice: Use of undefined constant CURLOPT_TIMEOUT - assumed 'CURLOPT_TIMEOUT' in /home/hieugioi/Workspace/PHP/Couponic/protected/modules/location/worklets/WLocationHelper.php on line 211 
[Wed Sep 05 20:33:15 2012] [error] [client 127.0.0.1] PHP Notice: Use of undefined constant CURLOPT_FAILONERROR - assumed 'CURLOPT_FAILONERROR' in /home/hieugioi/Workspace/PHP/Couponic/protected/modules/location/worklets/WLocationHelper.php on line 212 
[Wed Sep 05 20:33:15 2012] [error] [client 127.0.0.1] PHP Fatal error: Call to undefined function curl_init() in /home/hieugioi/Workspace/PHP/Couponic/framework/uniprogy/extensions/curl/CURL.php on line 22 
+3

जांचें कि phpinfo() – Nin

+0

का उपयोग कर कर्ल इंस्टॉल किया गया है या नहीं? – Emerald214

+0

उन स्थिरांक कर्ल – Nin

उत्तर

25

कर्ल स्थापित करें और अपने सभी समस्याओं :)

+3

या कम से कम त्रुटि लॉग में नोटिस: पी –

+0

मेरे पास कर्ल स्थापित है और यह संदेश आता है। एमएचएच ... – kwoxer

+0

@kwoxer जांचें कि कर्ल वास्तव में phpinfo() – Nin

21

गायब हो जाएगा php5-curl स्थापित करें। डेबियन के लिए,

$ apt-get install php5-curl 
संबंधित मुद्दे