Exemplo n.º 1
0
 public function __construct($options = null)
 {
     parent::__construct($options);
     // add additional options
     $this->options['ConnectTimeout'] = 5;
     $this->options['ScriptTimeLimit'] = 300;
 }
Exemplo n.º 2
0
 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;
 }