« PHP 8.3 Manual トップ
著作権 »
per page, with , order by , clip by
Results of 1 - 10 of about 35 for plain (0.002 sec.)
Phar::webPhar — ブラウザからのリクエストを、phar アーカイブ内部のファイルに転送... 13159
Phar::webPhar (PHP 5 >= 5.3.0, PHP 7, PHP 8, PECL phar >= 2.0.0) Phar::webPhar — ブラウザからのリクエストを、phar アーカイブ内部のファイルに転送する 説明 final public static function Phar::webPhar ( ? string $alias = null , ? string $index ... これらの関連が定義されています。 <?php $mimes = array( 'phps' => Phar :: PHPS , // highlight_file() に渡します 'c' => 'text/plain' , 'cc' => 'text/plain' , 'cpp' => 'text/plain' , 'c++' => 'text/plain' , 'dtd' => 'text/plain' , 'h' => 'text/plain' , 'l ... og' => 'text/plain' , 'rng' => 'text/plain' , 'txt' => 'text/plain' , 'xsd' => 'text/plain' , 'php' => Phar :: PHP , // PHP としてパースします ...
https://man.mtool.work/php/8.3/phar.webphar.html
data:// — データ (RFC 2397) | PHP 8.3 11839
data:// data:// — データ (RFC 2397) 説明 data: ( » RFC 2397 ) ストリームラッパーです。 利用法 data://text/plain;base64, オプション ラッパーの概要 属性 サポートの有無 allow_url_fopen で制約される Yes allow_url_include で制約される Yes 読み込 ... rmdir() のサポート No 例 例1 data:// の内容の表示 <?php // "I love PHP" と表示します echo file_get_contents ( 'data://text/plain;base64,SSBsb3ZlIFBIUAo=' ); ?> 例2 media type の取得 <?php $fp = fopen ( 'data://text/plain;base64,' , 'r' ); $meta = stre ... am_get_meta_data ( $fp ); // "text/plain" と表示します echo $meta [ 'mediatype' ]; ?> 他のマニュアルの関連ページ Linux JM fopen(3) Python email.iterators DuckDB CR ...
https://man.mtool.work/php/8.3/wrappers.data.html
gnupg_decrypt — 指定されたテキストを復号する | PHP 8.3 11727
gnupg_decrypt (PECL gnupg >= 0.1) gnupg_decrypt — 指定されたテキストを復号する 説明 function gnupg_decrypt ( resource $identifier , string $text ): string | false 事前に gnupg_adddecryptkey で設定されたキーを使用し、指定されたテキストを復号 ... pt() の例 <?php $res = gnupg_init (); gnupg_adddecryptkey ( $res , "8660281B6051D071D94B5B230549F9DC851566DC" , "test" ); $plain = gnupg_decrypt ( $res , $encrypted_text ); echo $plain ; ?> 例2 オブジェクト指向の gnupg_decrypt() の例 <?php $gpg = new ... gnupg (); $gpg -> adddecryptkey ( "8660281B6051D071D94B5B230549F9DC851566DC" , "test" ); $plain = $gpg -> decrypt ( $encrypted_text ); echo $plain ; ?> 他のマニュアルの関連ページ Python email.iterators DuckDB CREATE SE ...
https://man.mtool.work/php/8.3/function.gnupg-decrypt.html
snmp_set_valueretrieval — SNMP の値が返される方法を設定する | PHP 8.3 10295
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 ライブラリ ... の返す形式のままで返します。 SNMP_VALUE_PLAIN SNMP の型情報を含まないプレーンな値を返します。 SNMP_VALUE_OBJECT プロパティ value および type をもつオブジェクトを返します ... は SNMP_OCTET_STR や SNMP_COUNTER などの定数のいずれかとなります。 value を返す方法は、定数 SNMP_VALUE_LIBRARY , SNMP_VALUE_PLAIN のどちらが設定されているかによって決まります。 戻り値 常に true を返します。 変更履歴 バージョン 説明 8.2.0 戻り値の型が、 ... 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_OB ...
https://man.mtool.work/php/8.3/function.snmp-set-valueretrieval.html
mdecrypt_generic — データを復号する | PHP 8.3 9706
mdecrypt_generic (PHP 4 >= 4.0.2, PHP 5, PHP 7 < 7.2.0, PECL mcrypt >= 1.0.0) mdecrypt_generic — データを復号する 警告 この関数は PHP 7.1.0 で 非推奨 となり、PHP 7.2.0 で 削除 されました。この関数に頼らないことを強く推奨します。 説明 functi ... します。 例 例1 mdecrypt_generic() の例 <?php /* データ */ $key = 'this is a very long key, even too long for the cipher' ; $plain_text = 'very important data' ; /* モジュールをオープンし、IV を作成します */ $td = mcrypt_module_open ( 'des' , '' , 'ecb' ... します */ if ( mcrypt_generic_init ( $td , $key , $iv ) != - 1 ) { /* データを暗号化します */ $c_t = mcrypt_generic ( $td , $plain_text ); mcrypt_generic_deinit ( $td ); /* 復号のため、バッファを再度初期化します */ mcrypt_generic_init ( $td , $key , $iv ... ( $td , $c_t ); /* 後始末をします */ mcrypt_generic_deinit ( $td ); mcrypt_module_close ( $td ); } if ( strncmp ( $p_t , $plain_text , strlen ( $plain_text )) == 0 ) { echo "ok\n" ; } else { echo "error\n" ; } ?> 上記の例は、暗号化前のデータと復号した ...
https://man.mtool.work/php/8.3/function.mdecrypt-generic.html
mime_content_type — ファイルの MIME Content-type を検出する | PHP 8.3 8879
mime_content_type (PHP 4 >= 4.3.0, PHP 5, PHP 7, PHP 8) mime_content_type — ファイルの MIME Content-type を検出する 説明 function mime_content_type ( resource | string $filename ): string | false magic.mime ファイルの情報を用いて、 ファイル ... type を返します。 パラメータ filename 調べるファイルへのパス。 戻り値 Content type を MIME 形式で返します。 たとえば text/plain あるいは application/octet-stream のような形式です。 失敗した場合に false を返します。 エラー / 例外 失敗したときは E_WARN ... ontent_type ( 'php.gif' ) . "\n" ; echo mime_content_type ( 'test.php' ); ?> 上の例の出力は以下となります。 image/gif text/plain 参考 finfo_file() - ファイルについての情報を返す finfo_buffer() - 文字列バッファの情報を返す 他のマニュアルの関連ページ Py ...
https://man.mtool.work/php/8.3/function.mime-content-type.html
EventHttp::__construct — Constructs EventHttp object (the HTTP server) | PHP 8.... 8513
EventHttp::__construct (PECL event >= 1.2.6-beta) EventHttp::__construct — Constructs EventHttp object (the HTTP server) 説明 public function EventHttp::__construct ( EventBase $base , EventSslContext $ctx = null ) Constructs the HTTP serve ... r object. パラメータ base Associated event base. ctx EventSslContext class object. Turns plain HTTP server into HTTPS server. It means that if ctx is configured correctly, then the underlying buffer events will be bas ... ET or POST request(others are turned off here), e.g.: * $ nc -t 127.0.0.1 8010 * POST /about HTTP/1.0 * Content-Type: text/plain * Content-Length: 4 * Connection: close * (press Enter) * * It will output * a=12 * HTTP/1.0 200 OK * Content-Type: text/h ... tml; charset=ISO-8859-1 * Connection: close * * $ nc -t 127.0.0.1 8010 * GET /dump HTTP/1.0 * Content-Type: text/plain * Content-Encoding: UTF-8 * Connection: close * (press Enter) * * It will output: * HTTP/1.0 200 OK * Content-Type: text/h ...
https://man.mtool.work/php/8.3/eventhttp.construct.html
CURLStringFile::__construct — CURLStringFile オブジェクトを作る | PHP 8.3 8401
CURLStringFile::__construct (PHP 8 >= 8.1.0) CURLStringFile::__construct — CURLStringFile オブジェクトを作る 説明 public function CURLStringFile::__construct ( string $data , string $postname , string $mime = "application/octet-stream" ) CU ... ; // CURLStringFile オブジェクトを作ります $cstringfile = new CURLStringFile ( 'test upload contents' , 'test.txt' , 'text/plain' ); // POST データを設定します $data = array( 'test_string' => $cstringfile ); curl_setopt ( $ch , CURLOPT_POST , 1 ); cur ... の出力は以下となります。 array(1) { ["test_string"]=> array(5) { ["name"]=> string(8) "test.txt" ["type"]=> string(10) "text/plain" ["tmp_name"]=> string(14) "/tmp/phpTtaoCz" ["error"]=> int(0) ["size"]=> int(20) } } string(20) "test upload contents" 参 ...
https://man.mtool.work/php/8.3/curlstringfile.construct.html
headers_list — 送信した (もしくは送信される予定の) レスポンスヘッダの一覧を返す... 8163
headers_list (PHP 5, PHP 7, PHP 8) headers_list — 送信した (もしくは送信される予定の) レスポンスヘッダの一覧を返す 説明 function headers_list (): array headers_list() はブラウザもしくはクライアントに送信されるヘッダの数値配列を返します。 こ ... 視されます */ header ( "Example-Test: foo" ); /* レスポンスがプレーンテキストだと宣言します */ header ( 'Content-Type: text/plain; charset=UTF-8' ); /* 送信しようとしているヘッダは? */ var_dump ( headers_list ()); ?> 上の例の出力は、 たとえば以下のよう ... rray(3) { [0]=> string(19) "Set-Cookie: foo=bar" [1]=> string(17) "Example-Test: foo" [2]=> string(39) "Content-Type: text/plain; charset=UTF-8" } 注意 注意 : ヘッダにアクセスできたりヘッダを出力したりするのは、 それに対応した SAPI を使っている場合のみ ...
https://man.mtool.work/php/8.3/function.headers-list.html
PharFileInfo::getMetadata — ファイルとともに保存されている、ファイル固有のメタ... 8163
PharFileInfo::getMetadata (PHP 5 >= 5.3.0, PHP 7, PHP 8, PECL phar >= 1.0.0) PharFileInfo::getMetadata — ファイルとともに保存されている、ファイル固有のメタデータを返す 説明 public function PharFileInfo::getMetadata ( array $unserializeOptio ... har.phar' ); $p [ 'file.txt' ] = 'hello' ; $p [ 'file.txt' ]-> setMetadata (array( 'user' => 'bill' , 'mime-type' => 'text/plain' )); var_dump ( $p [ 'file.txt' ]-> getMetadata ()); } catch ( Exception $e ) { echo 'brandnewphar.phar を作成/変更できませ ... ん: ' , $e ; } ?> 上の例の出力は以下となります。 array(2) { ["user"]=> string(4) "bill" ["mime-type"]=> string(10) "text/plain" } 参考 PharFileInfo::setMetadata() - ファイルとともに保存する、ファイル固有のメタデータを設定する PharFileInfo::hasMetada ...
https://man.mtool.work/php/8.3/pharfileinfo.getmetadata.html
PREV 1 2 3 4 NEXT