About 16,031 results: "php is_resource"
Page 1 of 50
Filter Results
Sources
Languages
Filter Results
Try Search On

is_resource.php in Phalanger https://Phalanger.svn.codeplex.com/svn | 8 lines | PHP
  1. 	fclose($f);
  2. 	__var_dump(is_resource($f));

  1. DibiNotSupportedException("PHP extension 'mysql' is not loaded.");}}function
  2. connect(array&$config){if(isset($config['resource'])){$this->connection=$config['resource'];}else{DibiConnection::alias($config,'flags','options');if(!isset($config['charset']))$config['charset']='utf8';if(!isset($config['username']))$config['username']=ini_get('mysql.default_user');if(!isset($config['password']))$config['password']=ini_get('mysql.default_password');if(!isset($config['host'])){$host=ini_get('mysql.default_host');if($host){$config['host']=$host;$config['port']=ini_get('mysql.default_port');}else{if(!isset($config['socket']))$config['socket']=ini_get('mysql.default_socket');$config['host']=NULL;}}if(empty($config['socket'])){$host=$config['host'].(empty($config['port'])?'':':'.$config['port']);}else{$host=':'.$config['socket'];}if(empty($config['persistent'])){$this->connection=@mysql_connect($host,$config['username'],$config['password'],TRUE,$config['flags']);}else{$this->connection=@mysql_pconnect($host,$config['username'],$config['password'],$config['flags']);}}if(!is_resource($this->connection)){throw
  3. getResultResource(){$this->autoFree=FALSE;return
  4. is_resource($this->resultSet)?$this->resultSet:NULL;}}class
  5. getResultResource(){$this->autoFree=FALSE;return
  6. is_resource($this->resultSet)?$this->resultSet:NULL;}function
  7. new
  8. DibiDriverException($msg,0);}}if(!is_resource($this->connection)){throw
  9. new
  10. DibiDriverException(pg_last_error($this->connection),0,$sql);}elseif(is_resource($res)){$this->affectedRows=pg_affected_rows($res);if(pg_num_fields($res)){return$this->createResultDriver($res);}}}function
  11. getResource(){return
  12. is_resource($this->connection)?$this->connection:NULL;}function
  13. escape($value,$type){switch($type){case
  14. dibi::TEXT:if($this->escMethod){if(!is_resource($this->connection)){throw
  15. DibiException('Lost connection to server.');}return"'".pg_escape_string($this->connection,$value)."'";}else{return"'".pg_escape_string($value)."'";}case
  16. dibi::BINARY:if($this->escMethod){if(!is_resource($this->connection)){throw


















Back to Top