Results of 1 - 10 of about 548 for Localhost (0.008 sec.)
- mysql_connect — MySQL サーバーへの接続をオープンする | PHP 8.3 9936
- mysql_connect (PHP 4, PHP 5) mysql_connect — MySQL サーバーへの接続をオープンする 警告 この拡張モジュールは PHP 5.5.0 で非推奨になり、PHP 7.0.0 で削除されました。 MySQLi あるいは PDO_MySQL を使うべきです。詳細な情報は MySQL: API の選択 を参
... オープンあるいは再利用します。 パラメータ server MySQL サーバー。"hostname:port" のようにポート番号を 指定することが可能で、localhost では ":/path/to/socket" のようにソケットへのパスを指定することも可能です。 PHP ディレクティブ mysql.default_host が指定され ... ない場合(デフォルト)、 'localhost:3306' が使用されます。 SQL セーフモード の場合はこのパラメータは無視され、常に 'localhost:3306' が用いられます。 username ... した場合に MySQL リンク ID を、失敗した場合に false を返します。 例 例1 mysql_connect() の例 <?php $link = mysql_connect ( 'localhost' , 'mysql_user' , 'mysql_password' ); if (! $link ) { die( '接続できませんでした: ' . mysql_error ()); } echo '接続に成功し ...
-
https://man.mtool.work/php/8.3/function.mysql-connect.html
- getSession — MySQL サーバーに接続する | PHP 8.3 8730
- getSession (No version information available, might only be in Git) getSession — MySQL サーバーに接続する 説明 function mysql_xdevapi\getSession ( string $uri ): mysql_xdevapi\Session MySQL サーバーに接続します。 パラメータ uri mysqlx://use
... の場合、エラーが出て接続は失敗します。 このオプションは 8.0.22 で追加されました。 例1 URI の例 mysqlx://foobar mysqlx://root@localhost?socket=%2Ftmp%2Fmysqld.sock%2F mysqlx://foo:bar@localhost:33060 mysqlx://foo:bar@localhost:33160?ssl-mode=disabled mysqlx: ... //foo:bar@localhost:33260?ssl-mode=required mysqlx://foo:bar@localhost:33360?ssl-mode=required&auth=mysql41 mysqlx://foo:bar@(/path/to/socket) ... mysqlx://foo:bar@(/path/to/socket)?auth=sha256_mem mysqlx://foo:bar@[localhost:33060, 127.0.0.1:33061] mysqlx://foobar?ssl-ca=(/path/to/ca.pem)&ssl-crl=(/path/to/crl.pem) mysqlx://foo:bar@[localhost:33 ...
-
https://man.mtool.work/php/8.3/function.mysql-xdevapi-getsession.html
- ZookeeperConfig::add — Add servers to the ensemble | PHP 8.3 7970
- ZookeeperConfig::add (PECL zookeeper >= 0.6.0, ZooKeeper >= 3.5.0) ZookeeperConfig::add — Add servers to the ensemble 説明 public function ZookeeperConfig::add ( string $members , int $version = -1 , array &$stat = null ): void パラメータ m
... value to node. 例 例1 ZookeeperConfig::add() example Add members. <?php $client = new Zookeeper (); $client -> connect ( 'localhost:2181' ); $client -> addAuth ( 'digest' , 'timandes:timandes' ); $zkConfig = $client -> getConfig (); $zkConfig -> set ( "s ... erver.1=localhost:2888:3888:participant;0.0.0.0:2181" ); $zkConfig -> add ( "server.2=localhost:2889:3889:participant;0.0.0.0:2182" ); $r = ... $zkConfig -> get (); if ( $r ) echo $r ; else echo 'ERR' ; ?> 上の例の出力は以下となります。 server.1=localhost:2888:3888:participant;0.0.0.0:2181 server.2=localhost:2889:3889:participant;0.0.0.0:2182 version=0xca01e881a2 参考 Zookeep ...
-
https://man.mtool.work/php/8.3/zookeeperconfig.add.html
- ビルトインウェブサーバー | PHP 8.3 7863
- ビルトインウェブサーバー 警告 このウェブサーバーは、アプリケーション開発の支援用として設計されたものです。 テスト用に使ったり、制約のある環境でアプリケーションをデモするために使ったりすることもできるでしょう。 あらゆる機能を兼ね備えたウェブ
... せん 。 ビルトインウェブサーバーは本番環境で使うものでは ありません 。 例1 ウェブサーバーの起動 $ cd ~/public_html $ php -S localhost:8000 ターミナルには次のように表示されます。 PHP 5.4.0 Development Server started at Thu Jul 21 10:43:28 2011 Listening on ... localhost:8000 Document root is /home/me/public_html Press Ctrl-C to quit http://localhost:8000/ と http://localhost:8000/myscript.html をリクエストした後のターミナルの表示は、 このようになります。 PHP 5.4.0 Devel ... opment Server started at Thu Jul 21 10:43:28 2011 Listening on localhost:8000 Document root is /home/me/public_html Press Ctrl-C to quit. [Thu Jul 21 10:48:48 2011] ::1:39144 GET /favicon.ico - R ...
-
https://man.mtool.work/php/8.3/features.commandline.webserver.html
- snmp_set_valueretrieval — SNMP の値が返される方法を設定する | PHP 8.3 7317
- snmp_set_valueretrieval (PHP 4 >= 4.3.3, PHP 5, PHP 7, PHP 8) snmp_set_valueretrieval — SNMP の値が返される方法を設定する 説明 function snmp_set_valueretrieval ( int $method ): true パラメータ method 型 SNMP_VALUE_LIBRARY Net-SNMP ライブラリ
... でした。 例 例1 snmp_set_valueretrieval() の使用法 <?php snmp_set_valueretrieval ( SNMP_VALUE_LIBRARY ); $ret = snmpget ( 'localhost' , 'public' , 'IF-MIB::ifName.1' ); // $ret = "STRING: lo" snmp_set_valueretrieval ( SNMP_VALUE_PLAIN ); $ret = snmpget ( ... 'localhost' , 'public' , 'IF-MIB::ifName.1' ); // $ret = "lo"; snmp_set_valueretrieval ( SNMP_VALUE_OBJECT ); $ret = snmpget ( 'local ... R, see constants // [value] => lo // ) snmp_set_valueretrieval ( SNMP_VALUE_OBJECT | SNMP_VALUE_PLAIN ); $ret = snmpget ( 'localhost' , 'public' , 'IF-MIB::ifName.1' ); // stdClass Object // ( // [type] => 4 <-- SNMP_OCTET_STR, see constants // [value] => ...
-
https://man.mtool.work/php/8.3/function.snmp-set-valueretrieval.html
- ZookeeperConfig::remove — Remove servers from the ensemble | PHP 8.3 6987
- ZookeeperConfig::remove (PECL zookeeper >= 0.6.0, ZooKeeper >= 3.5.0) ZookeeperConfig::remove — Remove servers from the ensemble 説明 public function ZookeeperConfig::remove ( string $id_list , int $version = -1 , array &$stat = null ): voi
... to node. 例 例1 ZookeeperConfig::remove() example Remove members. <?php $client = new Zookeeper (); $client -> connect ( 'localhost:2181' ); $client -> addAuth ( 'digest' , 'timandes:timandes' ); $zkConfig = $client -> getConfig (); $zkConfig -> set ( "s ... erver.1=localhost:2888:3888:participant;0.0.0.0:2181,server.2=localhost:2889:3889:participant;0.0.0.0:2182" ); $zkConfig -> remove ( "2" ); ... echo $zkConfig -> get (); if ( $r ) echo $r ; else echo 'ERR' ; ?> 上の例の出力は以下となります。 server.1=localhost:2888:3888:participant;0.0.0.0:2181 version=0xca01e881a2 参考 ZookeeperConfig::get() - Gets the last committed configuratio ...
-
https://man.mtool.work/php/8.3/zookeeperconfig.remove.html
- iconv_mime_decode_headers — 複数の MIME ヘッダフィールドを一度にデコードする | ... 6880
- iconv_mime_decode_headers (PHP 5, PHP 7, PHP 8) iconv_mime_decode_headers — 複数の MIME ヘッダフィールドを一度にデコードする 説明 function iconv_mime_decode_headers ( string $headers , int $mode = 0 , ? string $encoding = null ): array | fa
... LDvGZ1bmc=?= To: example@example.com Date: Thu, 1 Jan 1970 00:00:00 +0000 Message-Id: <example@example.com> Received: from localhost (localhost [127.0.0.1]) by localhost with SMTP id example for <example@example.com>; Thu, 1 Jan 1970 00:00:00 +0000 (UTC) ... ample.com [Date] => Thu, 1 Jan 1970 00:00:00 +0000 [Message-Id] => <example@example.com> [Received] => Array ( [0] => from localhost (localhost [127.0.0.1]) by localhost with SMTP id example for <example@example.com>; Thu, 1 Jan 1970 00:00:00 +0000 (UTC) ...
-
https://man.mtool.work/php/8.3/function.iconv-mime-decode-headers.html
- oci_bind_by_name — Oracle プレースホルダに PHP 変数をバインドする | PHP 8.3 6880
- oci_bind_by_name (PHP 5, PHP 7, PHP 8, PECL OCI8 >= 1.1.0) oci_bind_by_name — Oracle プレースホルダに PHP 変数をバインドする 説明 function oci_bind_by_name ( resource $statement , string $param , mixed &$var , int $max_length = -1 , int $ty
... このようなテーブルを作ります // CREATE TABLE mytab (id NUMBER, text VARCHAR2(40)); $conn = oci_connect ( 'hr' , 'welcome' , 'localhost/XE' ); if (! $conn ) { $m = oci_error (); trigger_error ( htmlentities ( $m [ 'message' ]), E_USER_ERROR ); } $stid = oci_ ... 数回実行 <?php // このようなテーブルを作ります // CREATE TABLE mytab (id NUMBER); $conn = oci_connect ( 'hr' , 'welcome' , 'localhost/XE' ); if (! $conn ) { $m = oci_error (); trigger_error ( htmlentities ( $m [ 'message' ]), E_USER_ERROR ); } $a = array( ... tatement ( $stid ); oci_close ( $conn ); ?> 例3 foreach ループでのバインド <?php $conn = oci_connect ( 'hr' , 'welcome' , 'localhost/XE' ); if (! $conn ) { $m = oci_error (); trigger_error ( htmlentities ( $m [ 'message' ]), E_USER_ERROR ); } $sql = 'SELE ...
-
https://man.mtool.work/php/8.3/function.oci-bind-by-name.html
- oci_fetch_array — クエリの次の行を連想配列あるいは数値添字配列で返す | PHP 8.3 6550
- oci_fetch_array (PHP 5, PHP 7, PHP 8, PECL OCI8 >= 1.1.0) oci_fetch_array — クエリの次の行を連想配列あるいは数値添字配列で返す 説明 function oci_fetch_array ( resource $statement , int $mode = OCI_BOTH | OCI_RETURN_NULLS ): array | false ク
... ムだけしか見えなくなります。 例 例1 oci_fetch_array() での OCI_BOTH の使用例 <?php $conn = oci_connect ( 'hr' , 'welcome' , 'localhost/XE' ); if (! $conn ) { $e = oci_error (); trigger_error ( htmlentities ( $e [ 'message' ], ENT_QUOTES ), E_USER_ERROR ); } ... INSERT INTO mytab (id, description) values (1, 'A very long string'); COMMIT; */ $conn = oci_connect ( 'hr' , 'welcome' , 'localhost/XE' ); if (! $conn ) { $e = oci_error (); trigger_error ( htmlentities ( $e [ 'message' ], ENT_QUOTES ), E_USER_ERROR ); } ... INSERT INTO mytab (id, description) values (1, 'A very long string'); COMMIT; */ $conn = oci_connect ( 'hr' , 'welcome' , 'localhost/XE' ); if (! $conn ) { $e = oci_error (); trigger_error ( htmlentities ( $e [ 'message' ], ENT_QUOTES ), E_USER_ERROR ); } ...
-
https://man.mtool.work/php/8.3/function.oci-fetch-array.html
- mysqli::__construct — 新規に MySQL サーバーへの接続をオープンする | PHP 8.3 6227
- mysqli::__construct mysqli::connect mysqli_connect (PHP 5, PHP 7, PHP 8) mysqli::__construct -- mysqli::connect -- mysqli_connect — 新規に MySQL サーバーへの接続をオープンする 説明 オブジェクト指向型 public function mysqli::__construct ( ?
... P プロトコルの代わりにパイプが使用されます。 ホスト名とポートが一緒に指定された場合は、TCP/IP プロトコルが使われます。 例: localhost:3308 . ホストの前に p: をつけると、持続的な接続を開きます。 接続プールから開いた接続上で mysqli_change_user() が自動的にコ ... e attempting to make a connection */ mysqli_report ( MYSQLI_REPORT_ERROR | MYSQLI_REPORT_STRICT ); $mysqli = new mysqli ( 'localhost' , 'my_user' , 'my_password' , 'my_db' ); /* Set the desired charset after establishing a connection */ $mysqli -> set_cha ... tempting to make a connection */ mysqli_report ( MYSQLI_REPORT_ERROR | MYSQLI_REPORT_STRICT ); $mysqli = mysqli_connect ( 'localhost' , 'my_user' , 'my_password' , 'my_db' ); /* Set the desired charset after establishing a connection */ mysqli_set_charset ...
-
https://man.mtool.work/php/8.3/mysqli.construct.html