meng-enable curl dalam xampp...
susah-susah gampang... memang.... pada dasarnya adalah dengan menggunakan serangkaian proses dengan merubah php.ini
dan uncomment
Configuring cURL with PHP and Apache on windows is a tedious process . I used to spend hours on system to configure it and finally got the procedure to do it . I am sharing with you step by step details of configuring it .
1. Install PHP to a location comfortable for you .
2. Edit php.ini file within the php folder
* set extension_dir = “C:\xampp\php\ext”
* set register_globals = On
* set session.save_path = “C:\xampp\tmp” – create it if that folder doesn’t exist
3. Copy php4ts.dll ( if you are using php 5 or above then file would be php5ts.dll ) located inside php folder to apache bin folder .
4. Copy libeay32.dll and ssleay32.dll (located in C:\xampp\php\dlls\) to c:\windows\system32
5. Download cURL from here . Unzip cURL to D:\apps\curl .
6. [SSL INSTALL ONLY] Download OpenSSL for Windows from here and extract libssl32.dll to D:\apps\curl .
7. [Windows XP Install Only] Check to see if you have the following file: C:\windows\system32\msvcr70.dll. If not, search for it in Google and download it to system32. You may get error messages without it.
8. Uncomment the curl line in your php.ini file to enable curl: extension=php_curl.dll
Test with the following PHP code :
$url = "http://www.terserahanda.com";
$ch = curl_init();
curl_setopt($ch, CURLOPT_URL,$url);
curl_setopt($ch, CURLOPT_VERBOSE, 1);
curl_setopt($ch, CURLOPT_POST, 0);
curl_setopt($ch, CURLOPT_RETURNTRANSFER,1);
$returned = curl_exec($ch);
curl_close ($ch);
echo $returned;
Bannerad
Artikel Terpopuler
-
Despite that at the end of this post you will find a filtered and somehow manually edited list of Pligg-based social bookmarking sites, this...
-
2016-08-09 18:38:19.0 Guangzhou Int'l Parcel Center received 2016-08-09 18:38:25.0 Guangzhou Int'l Parcel Center customs scan 20...
-
It seems the method for us to use is far simpler than my initial impressions - we need only add two small sections of code to our templates ...
-
Disaat-saat tertentu untuk menghilangkan kejenuhan kadang kala entertain (kesenangan) harus kita upayakan, demikian pula ketika kita berkuta...
-
Last month we showed you some of the more popular and useful Adobe AIR applications (see " 6 Adobe AIR Apps to Check Out ...
-
PicPick is an all-in-one software for software developers, graphic designers and home user. It has an intuitive interface and simple, elega...
-
About the author henkhei is man in the mirror where you can find everywhere henkhei . he specializes in topics of interest to techno gee...
-
Twitter pages have their own google page rank too in Google, so it is important to do that 5 mins drill better utilize your Twitter page.Thi...
-
A tablet PC is a wireless, portable personal computer with a touch screen interface. The tablet form factor is typically smaller than ...
-
Bio-Linux is an ideal system for scientists handling and analysing biological data. Bio-Linux 6.0 is a fully featured, powerful, config...
Tags
Blogumulus by Roy Tanck and Amanda Fazani
3 comments
oi... nice articles....
Balassalam mas.... nice blog
Balassalam ya....!!!
Balas