public function __construct($options = null) { parent::__construct($options); // add additional options $this->options['ConnectTimeout'] = 5; $this->options['ScriptTimeLimit'] = 300; }
public function __construct($options = null) { parent::__construct($options); if ((bool) (int) ini_get('allow_url_fopen') === false) { throw new \Exception("Please activate 'allow_url_fopen'."); } // add additional options $this->options['ScriptTimeLimit'] = 300; }