Blitzaffe Code - PHP Classes - libcurl Emulator

Buat aplikasi PHP yang membutuhkan CURL Extention namun pada webserver tidak tersedia bisa mnggunakan emulator CURL yang berbasis PHP. Jadi programmer bisa menjalankan fungsi CURL tanpa perlu installasi CURL Library di web serer. Jelasny bisa dibaca di bawah ini:

libcurl EmulatorEnsures that your CURL-enabled script works anywhereGZipped ArchiveView File | Download (27KB)Provides a pure-PHP implementation of the PHP CURL extension, for use on systems which do not already have the CURL extension installed. It emulates all of the curl_* functions normally provided by the CURL extension itself.This will automatically detect and use the best CURL implementation available on your server. It will attempt the following, in order:
  1. Extension: Check for the existence of the “real” CURL PHP Extension. If it is loaded, the library will do nothing (and it will not interfere with the “real” extension).
  2. Commandline: Check for the existence of the CURL commandline binary (usually located in /usr/bin/curl). If found, the library will emulate the CURL PHP extension (including all curl_* functions) using the commandline binary to execute all HTTP requests.
  3. Native: If neither the “real” CURL PHP Extension nor the CURL commandline binary are available, the library will emulate the CURL PHP extension (including all curl_* functions) using a native, pure-PHP HTTP client implementation (HTTPRetriever) which provides support for almost all CURL options. HTTPS (SSL) support is available in this mode under PHP 4.3.0 if the OpenSSL Extension is loaded.

Thus, by including this library in your project, you can rely on having some level of CURL support regardless of the configuration of the server on which it is being used.

Blitzaffe Code – PHP Classes – libcurl Emulator

We have 1 comments in this post, add more by leave yours below.

  1. That rss option on your website here is impressive, you should tell people about it in your upcoming post. I haven’t noted it for the first couple of times, now I’m using it every morning to check on any updates.

Connect with us

thinkrooms on Facebook

Related Post