Today I was implementing Facebook authentication and downloaded FB PHP SDK and encountered a first issue. CURL extension was not enabled in WAMP. Googled around and found several answers and followed every steps suggested and still it was not working. I ended up downloading php_curl.dll and curl package. php_curl.dll comes with PHP 5.3.5 it is in ext dir and libcurl.dll is not required for PHP 5.3.5. So if you have php 5.3.5 do not waste time downloading it.
I would suggest follow these steps for php version 5.3.5 and above.
1. Write a simple php program as shown below.
<?php
phpinfo()
?>
2. Run this in a browser and search for "CURL" if not found then follow the steps below.
3. Run this in a browser and find out the location of php.ini file. This is important step which is missing.
php.ini file exists in bin\php\php5.3.5\ directory also. So it is important to know which php.ini file
is used.
D:\wamp\bin\apache\Apache2.2.17\bin\php.ini
Edit this file and uncomment line (delete first character ";" ) "extension=php_curl.dll" from above file.
3. If just uncommenting above line does not work then copy libeay32.dll and ssleay32.dll to C:\windows\system32\ directory.
Blogger templates
Blogger news
Blogroll
Archives
-
▼
2013
(219)
-
▼
November
(19)
- AJAX file upload
- web usabilty
- ThinkUp – Open-source app that stores your social ...
- Comments in PHP
- All About Our PHP Tutorials
- Using echo
- How to get Latitude/Longitude from an address (or ...
- modify timestamp in php
- Copyright Policy
- Adding CURL extension to PHP 5.3.5
- php home
- Teknik Debugging Script PHP + MySQL
- database related links in php
- No title
- PHP Best Practices - 3 : Use White Space and Inden...
- PHP Syntax Overview
- Why PHP?
- display cookies in php
- Want to display html string as text using php?
-
▼
November
(19)