Skip to main content

cURL

The cURL libraries provide a nice interface for file transfers to and from a webserver. They have support for a wide variety of protocols (like HTTPS) giving them an edge over built-in PHP functions like fsockopen(). The libraries are thread-safe, IPv6 compatible, and will work with any technology that is built on top of HTTP. Whether you are building simple script to fetch a web page, or a secure payment gateway, leveraging the functions built into cURL can save a lot of time.
Definition:
cURL stands for "Client URLs", and was developed by Daniel Stenberg in 1998 as a command line tool. libcurl is a portable library that provides an easy interface to the cURL functionality.
Both cURL and libcurl can transfer files using a wide variety of protocols, including HTTP, HTTPS, FTP, FTPS, GOPHER, LDAP, DICT, TELNET and FILE.
The cURL libraries are truly open source, with an MIT/X derivative license.
Installation:
From PHP version 4.2.3 on, you need a cURL version of at least 7.9.0. From PHP version 4.3.0 on, you need a cURL version of at least 7.9.8.
Linux-After installing cURL (./configure, make, make install), PHP must be recompiled to include cURL support (--with-curl).
If cURL support is enabled, the phpinfo() function will display it in its output.
Windows – A good article can be found here
On windows check for path of php.ini path, for windows default path is C://windows so make sure that you are making changes to correct php.ini file.

Comments

Popular posts from this blog

Google API has a BUG

Recently i was checking Google federated login API implementation with Zoho. While using Google login facility with Zoho I encountered a BIG error. I logged in to Zoho with "Sign in using Google" facility. After using it when i logged out of Zoho, I found that i was still logged in in my Google account. Looks like this api has logged me in my Google account also in the background. This is a BIG bug in a country like India where maximum internet users use public places for internet access.

An Indian startup company

In an old essay Paul grahm has written three basic requirements for a successful startup. 1-to start with good people 2- to make something customers actually want 3- to spend as little money as possible. Lets analyse these three points in Indian context. Very first point is a problem in India. Who is good people ? If you want a real good software engineer then you have only one option in India is to hire peoplw from IIT's. But seeing salary centric work culture it will be a huge pressure on small pocket of a startup. So what is the alternative ? this the point where most the startup fail in India. They go for intermediate level of programmers ( 1-2 year exp) came out from horrable knowledge mines ( read new breed of engineering collages). Solution - Go for freshers and harnesh their infinte capacity to work on your dream project. The second point is well known fact whether you are starting a comapny or your PHD. You need to know which existing problem you are going to solve and how...