Search  
Tuesday, January 06, 2009 ..:: my.Blogs ::.. Register  Login
 History Minimize
  

 Search Minimize
  

 How to enable CURL for PHP on Windows Minimize
Location: BlogsonDevelopment+=1;    
Posted by: Javier Callico 1/8/2008
These are the steps that worked for me:
  1. Uncommented the line "extension=php_curl.dll" in php.ini file.
  2. Copied libeay32.dll and ssleay32.dll to C:\WINDOWS\system32. 
Note that these two dlls can be found on the PHP folder under the dlls folder. Adding this folder to the Windows PATH variable should also work.

You can use this simple test script - which retrieves and displays yahoo.com homepage - to verify that CURL is now working:

<?php
$ch = curl_init("http://www.yahoo.com/");
curl_setopt($ch, CURLOPT_HEADER, 0);
curl_exec($ch);
curl_close($ch);
?>



Permalink |  Trackback

Your name:
Title:
Comment:
Add Comment   Cancel 
  

 Contact Information Minimize
By e-mail:
info at callicode.com

By phone:
416 857 5750

View Javier Callico's profile on LinkedIn
    

 Blog Directories Minimize
    

Movember - Sponsor Me

Copyright 2006 by My Website   Terms Of Use  Privacy Statement
DotNetNuke® is copyright 2002-2009 by Perpetual Motion Interactive Systems Inc.