« PHP 8.3 Manual トップ
著作権 »
per page, with , order by , clip by
Results of 1 - 10 of about 284 for host (0.001 sec.)
The RarEntry class | PHP 8.3 11106
The RarEntry class (PECL rar >= 0.1) はじめに A RAR entry, representing a directory or a compressed file inside a RAR archive. クラス概要 final class RarEntry { /* 定数 */ const int HOST_MSDOS = 0 ; const int HOST_OS2 = 1 ; const int HOST_W ... IN32 = 2 ; const int HOST_UNIX = 3 ; const int HOST_MACOS = 4 ; const int HOST_BEOS = 5 ; const int ATTRIBUTE_WIN_READONLY = 1 ; const int ATTRIBUTE ... ublic function getAttr (): int public function getCrc (): string public function getFileTime (): string public function getHostOs (): int public function getMethod (): int public function getName (): string public function getPackedSize (): int publi ... n isDirectory (): bool public function isEncrypted (): bool public function __toString (): string } 定義済み定数 RarEntry::HOST_MSDOS If the return value of RarEntry::getHostOs() equals this constant, MS-DOS was used to add this entry. Use instead of ...
https://man.mtool.work/php/8.3/class.rarentry.html
定義済み定数 | PHP 8.3 9778
定義済み定数 以下の定数が定義されています。 この関数の拡張モジュールが PHP 組み込みでコンパイルされているか、 実行時に動的にロードされている場合のみ使用可能です。 RAR_HOST_MSDOS ( int ) かわりに RarEntry::HOST_MSDOS を使います。 RAR_HOST_OS ... 2 ( int ) かわりに RarEntry::HOST_OS2 を使います。 RAR_HOST_WIN32 ( int ) かわりに RarEntry::HOST_WIN32 を使います。 RAR_HOST_UNIX ( int ) かわりに RarEntry ... ::HOST_UNIX を使います。 RAR_HOST_BEOS ( int ) かわりに RarEntry::HOST_BEOS を使います。 他のマニュアルの関連ページ Python builti ...
https://man.mtool.work/php/8.3/rar.constants.html
mysqli::$host_info — 使用している接続の型を文字列で返す | PHP 8.3 9595
mysqli::$host_info mysqli_get_host_info (PHP 5, PHP 7, PHP 8) mysqli::$host_info -- mysqli_get_host_info — 使用している接続の型を文字列で返す 説明 オブジェクト指向型 string $mysqli->host_info ; 手続き型 function mysqli_get_host_info ( mysql ... あるいは mysqli_init() が返す mysqli オブジェクト。 戻り値 サーバーのホスト名と接続の型を文字列で返します。 例 例1 $mysqli->host_info の例 オブジェクト指向型 <?php mysqli_report ( MYSQLI_REPORT_ERROR | MYSQLI_REPORT_STRICT ); $mysqli = new mysqli ( "l ... ocalhost" , "my_user" , "my_password" , "world" ); /* ホスト情報を表示します */ printf ( "Host info: %s\n" , $mysqli -> host_info ) ... ; 手続き型 <?php mysqli_report ( MYSQLI_REPORT_ERROR | MYSQLI_REPORT_STRICT ); $link = mysqli_connect ( "localhost" , "my_user" , "my_password" , "world" ); /* ホスト情報を表示します */ printf ( "Host info: %s\n" , mysqli_get_host_info ( ...
https://man.mtool.work/php/8.3/mysqli.get-host-info.html
例 | PHP 8.3 9008
例 The following is a simple example that establishes a connection between PHP and CUBRID. This section will cover the most basic and notable features. The following code required to connect to CUBRID database, which means CUBRID Server and ... /html; charset=euc-kr"> </head> <body> <center> <table border=2> <?php /** * Set server information for CUBRID connection. host_ip is the IP * address where the CUBRID Broker is installed (localhost in this * example), and host_port is the port numbe ... ID Broker. * The port number is the default given during the installation. * For details, see "Administrator's Guide." */ $host_ip = "localhost" ; $host_port = 33000 ; $db_name = "demodb" ; /** * Connect to CUBRID Server. Do not make the actual conne ... al connection is to handle transaction more efficiently * in the 3-tier architecture. */ $cubrid_con = @ cubrid_connect ( $host_ip , $host_port , $db_name ); if (! $cubrid_con ) { echo "Database Connection Error" ; exit; } ?> <?php $sql = "select spo ...
https://man.mtool.work/php/8.3/cubrid.examples.html
mysqlndプラグインの開発をはじめよう | PHP 8.3 9008
mysqlndプラグインの開発をはじめよう mysqlnd プラグイン それ自体が PHP拡張モジュール であることを覚えておくことが重要です。 次のコードは、典型的な mysqlnd プラグインで使われる MINIT 関数の基本構造を示します。 /* my_php_mysqlnd_plugin.c */ st ... .. */ } タスクの解析: C言語からユーザースペースへ class proxy extends mysqlnd_plugin_connection { public function connect($host, ...) { .. } } mysqlnd_plugin_set_conn_proxy(new proxy()); プロセス: PHP: ユーザーがプラグインのコールバックを登録する PHP ... それ以上必要な場合は、たとえば次のようにします。 enum_func_status (*func_mysqlnd_conn__connect)( MYSQLND *conn, const char *host, const char * user, const char * passwd, unsigned int passwd_len, const char * db, unsigned int db_len, unsigned int port, ... 適化されたやり方を示しています: /* my_mysqlnd_plugin.c */ MYSQLND_METHOD(my_conn_class,connect)( MYSQLND *conn, const char *host /* ... */ TSRMLS_DC) { enum_func_status ret = FAIL; zval * global_user_conn_proxy = fetch_userspace_proxy(); if (global_us ...
https://man.mtool.work/php/8.3/mysqlnd.plugin.developing.html
RarEntry::getHostOs — エントリのホスト OS を取得する | PHP 8.3 9008
RarEntry::getHostOs (PECL rar >= 0.1) RarEntry::getHostOs — エントリのホスト OS を取得する 説明 public function RarEntry::getHostOs (): int アーカイブエントリのホスト OS のコードを返します。 パラメータ この関数にはパラメータはありません。 戻 ... り値 ホスト OS のコード、あるいはエラー時に false を返します。 例 例1 RarEntry::getHostOs() の例 (バージョン >= 2.0.0) <?php $rar_file = rar_open ( 'example.rar' ) or die( "Rar アーカイブのオープンに失敗しました ... entry = rar_entry_get ( $rar_file , 'Dir/file.txt' ) or die( "そのようなエントリは見つかりません" ); switch ( $entry -> getHostOs ()) { case RarEntry :: HOST_MSDOS : echo "MS-DOS\n" ; break; case RarEntry :: HOST_OS2 : echo "OS2\n" ; break; case RarE ... ntry :: HOST_WIN32 : echo "Win32\n" ; break; case RarEntry :: HOST_MACOS : echo "MacOS\n" ; break; case RarEntry :: HOST_UNIX : echo "U ...
https://man.mtool.work/php/8.3/rarentry.gethostos.html
例 | PHP 8.3 8094
例 PHP/YAZ はターゲット(Z-Associations)との接続を保持し続けます。 正の整数で特定の接続のIDを表します。 以下のスクリプトは、API の並列検索機能のデモです。引数を指定せずにコールした場合、 この関数はクエリフォームを出力します。そうでない場合 ( ... 引数を指定した場合)は、配列 host にあるターゲットを検索します。 例1 YAZ による並列検索 <?php $host = $_REQUEST [ host ]; $query = $_REQUEST [ query ]; $num ... _hosts = count ( $host ); if (empty( $query ) || count ( $host ) == 0 ) { echo '<form method="get"> <input type="checkbox" name= ... "host[]" value="bagel.indexdata.dk/gils" /> GILS test <input type="checkbox" name="host[]" value="localhost:9999/Default" /> loc ...
https://man.mtool.work/php/8.3/yaz.examples.html
mysql_get_host_info — MySQL ホスト情報を取得する | PHP 8.3 7266
mysql_get_host_info (PHP 4 >= 4.0.5, PHP 5) mysql_get_host_info — MySQL ホスト情報を取得する 警告 この拡張モジュールは PHP 5.5.0 で非推奨になり、PHP 7.0.0 で削除されました。 MySQLi あるいは PDO_MySQL を使うべきです。詳細な情報は MySQL: API ... の選択 を参照ください。 この関数の代替として、これらが使えます。 mysqli_get_host_info() PDO::getAttribute() の attribute に PDO::ATTR_CONNECTION_STATUS を指定する 説明 function mysql_get_host_info ( reso ... 成されます。 戻り値 使用されている MySQL 接続の型を表す文字列を返します。 失敗した場合に false を返します。 例 例1 mysql_get_host_info() の例 <?php $link = mysql_connect ( 'localhost' , 'mysql_user' , 'mysql_password' ); if (! $link ) { die( 'Could not ... connect: ' . mysql_error ()); } printf ( "MySQL host info: %s\n" , mysql_get_host_info ()); ?> 上の例の出力は、 たとえば以下のようになります。 MySQL host info: Localhost via U ...
https://man.mtool.work/php/8.3/function.mysql-get-host-info.html
Memcache::getServerStatus — サーバーの状態を返す | PHP 8.3 7266
Memcache::getServerStatus memcache_get_server_status (PECL memcache >= 2.1.0) Memcache::getServerStatus -- memcache_get_server_status — サーバーの状態を返す 説明 function Memcache::getServerStatus ( string $host , int $port = 11211 ): int f ... unction memcache_get_server_status ( Memcache $memcache , string $host , int $port = 11211 ): int Memcache::getServerStatus() は、サーバーがオンライン/オフラインのどちらであるかを返します。 注意 ... : この関数は、Memcache バージョン 2.1.0 で追加されました。 パラメータ host memcached が接続を待ち受けるホストを指定します。 port memcached が接続を待ち受けるポートを指定します。 戻り値 サーバーの状 ... e::getServerStatus() の例 <?php /* オブジェクト指向の API */ $memcache = new Memcache ; $memcache -> addServer ( 'memcache_host' , 11211 ); echo $memcache -> getServerStatus ( 'memcache_host' , 11211 ); /* 手続き型の API */ $memcache = memcache_conne ...
https://man.mtool.work/php/8.3/memcache.getserverstatus.html
pg_host — 接続に関連するホスト名を返す | PHP 8.3 7179
pg_host (PHP 4, PHP 5, PHP 7, PHP 8) pg_host — 接続に関連するホスト名を返す 説明 function pg_host ( ? PgSql\Connection $connection = null ): string pg_host() は、指定した connection インスタンスが接続しているホストの 名前を返します。 パラメ ... りました。 これより前のバージョンでは、 resource を期待していました。 8.0.0 connection は、nullable になりました。 例 例1 pg_host() の例 <?php $pgsql_conn = pg_connect ( "dbname=mark host=localhost" ); if ( $pgsql_conn ) { print "Successfully connected ... to: " . pg_host ( $pgsql_conn ) . "<br/>\n" ; } else { print pg_last_error ( $pgsql_conn ); exit; } ?> 参考 pg_connect() - PostgreSQL 接続 ...
https://man.mtool.work/php/8.3/function.pg-host.html
PREV 1 2 3 4 5 6 7 8 9 10 NEXT