Your host is probably running PHP in safe mode. To check the configuration of your PHP installation, create a file called phpinfo.php or similar then put the following in it.
PHP Code:
<?php
phpinfo();
?>
Then open the file in your browser. If you scan down the list displayed, you will see whether Safe Mode is switched on or off as well as if open_basedir is set.
The only way to change these parameters is to ask your host to edit the php.ini file which they are very unlikely to do.
What CURLOPT_FOLLOWLOCATION does, is tell the script to follow any page redirections that are on the page you are trying to download. The chance are that there won't be so it should be safe to comment out line 16 with "//".
Line 16 will now look similar to this
PHP Code:
// curl_setopt($ch, CURLOPT_FOLLOWLOCATION, 1);
This "should" solve the problem.