Skip to content

06: Fix missing cURL extension

nicoSWD edited this page Sep 6, 2012 · 1 revision

If your server doesn't have the cURL extension installed, then you can use native functions to get access to all features. You can enable native functions by adding one line of code:

$putio->setHTTPEngine('Native');

By doing this, the script will be forced to use native PHP functions. But keep in mind that there are limitations regarding file sizes. When uploading a file to your put.io account, it needs to be read into the memory, so when you're running multiple instances, or you're uploading large files, that can cause problems. Keep that in mind!

Furthermore, the native functions require one php.ini setting to be enabled, and thus being allow_url_fopen. If your server doesn't allow that either, I'm afraid you're out of luck! Unless you're willing to change your hosting.

Clone this wiki locally