« PHP 8.3 Manual トップ
著作権 »
per page, with , order by , clip by
Results of 1 - 6 of about 6 for inputFile (0.001 sec.)
復号のためのシークレットストリームのコンテキストを初期化する 10803
« sodium_crypto_secretbox_open sodium_crypto_secretstream_xchacha20poly1305_init_push » PHP Manual Sodium 関数 復号のためのシークレットストリームのコンテキストを初期化する 検索 sodium_crypto_secretstream_xchacha20poly1305_init_pull (PHP 7 > ... ートを返します。 例 例1 sodium_crypto_secretstream_xchacha20poly1305_init_pull() の例 <?php function decrypt_file ( string $inputFilePath , string $outputFilePath , string $key ): void { $inputFile = fopen ( $inputFilePath , 'rb' ); $outputFile = fopen ( $ ... outputFilePath , 'wb' ); $header = fread ( $inputFile , 24 ); $state = sodium_crypto_secretstream_xchacha20poly1305_init_pull ( $header , $key ); $inputFileSize = fstat ( $inpu ... tFile )[ 'size' ]; // Decrypt the file and write its contents to the output file: for ( $i = 24 ; $i < $inputFileSize ; $i += 8192 ) { $ctxt_chunk = fread ( $inputFile , 8192 ); // We're not using $tag, but in real protocols you can use ...
https://man.mtool.work/php/8.3/function.sodium-crypto-secretstream-xchacha20poly...
復号のためのシークレットストリームのコンテキストを初期化する 10803
« sodium_crypto_secretbox_open sodium_crypto_secretstream_xchacha20poly1305_init_push » PHP Manual Sodium 関数 復号のためのシークレットストリームのコンテキストを初期化する 検索 sodium_crypto_secretstream_xchacha20poly1305_init_pull (PHP 7 > ... ートを返します。 例 例1 sodium_crypto_secretstream_xchacha20poly1305_init_pull() の例 <?php function decrypt_file ( string $inputFilePath , string $outputFilePath , string $key ): void { $inputFile = fopen ( $inputFilePath , 'rb' ); $outputFile = fopen ( $ ... outputFilePath , 'wb' ); $header = fread ( $inputFile , 24 ); $state = sodium_crypto_secretstream_xchacha20poly1305_init_pull ( $header , $key ); $inputFileSize = fstat ( $inpu ... tFile )[ 'size' ]; // Decrypt the file and write its contents to the output file: for ( $i = 24 ; $i < $inputFileSize ; $i += 8192 ) { $ctxt_chunk = fread ( $inputFile , 8192 ); // We're not using $tag, but in real protocols you can use ...
https://man.mtool.work/php/8.3/function.sodium-crypto-secretstream-xchacha20poly...
暗号化のために、シークレットストリームのコンテキストを初期化する 9980
« sodium_crypto_secretstream_xchacha20poly1305_init_pull sodium_crypto_secretstream_xchacha20poly1305_keygen » PHP Manual Sodium 関数 暗号化のために、シークレットストリームのコンテキストを初期化する 検索 sodium_crypto_secretstream_xchacha20 ... ために必要です。 例 例1 sodium_crypto_secretstream_xchacha20poly1305_init_push() の例 <?php function encrypt_file ( string $inputFilePath , string $outputFilePath , string $key ): void { [ $state , $header ] = sodium_crypto_secretstream_xchacha20poly1305_i ... nit_push ( $key ); $inputFile = fopen ( $inputFilePath , 'rb' ); $outputFile = fopen ( $outputFilePath , 'wb' ); // Write the header: fwrite ( $outputFi ... le , $header ); $inputFileSize = fstat ( $inputFile )[ 'size' ]; // Encrypt the file and write its contents to the output file: for ( $i = 0 ; $i < $ ...
https://man.mtool.work/php/8.3/function.sodium-crypto-secretstream-xchacha20poly...
暗号化のために、シークレットストリームのコンテキストを初期化する 9980
« sodium_crypto_secretstream_xchacha20poly1305_init_pull sodium_crypto_secretstream_xchacha20poly1305_keygen » PHP Manual Sodium 関数 暗号化のために、シークレットストリームのコンテキストを初期化する 検索 sodium_crypto_secretstream_xchacha20 ... ために必要です。 例 例1 sodium_crypto_secretstream_xchacha20poly1305_init_push() の例 <?php function encrypt_file ( string $inputFilePath , string $outputFilePath , string $key ): void { [ $state , $header ] = sodium_crypto_secretstream_xchacha20poly1305_i ... nit_push ( $key ); $inputFile = fopen ( $inputFilePath , 'rb' ); $outputFile = fopen ( $outputFilePath , 'wb' ); // Write the header: fwrite ( $outputFi ... le , $header ); $inputFileSize = fstat ( $inputFile )[ 'size' ]; // Encrypt the file and write its contents to the output file: for ( $i = 0 ; $i < $ ...
https://man.mtool.work/php/8.3/function.sodium-crypto-secretstream-xchacha20poly...
ファイルポインタから 1 行取得する 7019
« fgetcsv fgetss » PHP Manual ファイルシステム 関数 ファイルポインタから 1 行取得する 検索 fgets (PHP 4, PHP 5, PHP 7, PHP 8) fgets — ファイルポインタから 1 行取得する 説明 function fgets ( resource $stream , ? int $length = null ): string ... は false を返します。 エラーが起こった場合、 false を返します。 例 例1 行毎にファイルを読み込む <?php $fp = @ fopen ( "/tmp/inputfile.txt" , "r" ); if ( $fp ) { while (( $buffer = fgets ( $fp , 4096 )) !== false ) { echo $buffer , PHP_EOL ; } if (! feof ( ... ockopen fclose バイト 改行 行末 buffer line ストリーム 接続 fgetcsv ファイルシステム resource 正常 クローズ 検出 時点 最大 inputfile ...
https://man.mtool.work/php/8.3/function.fgets.html
ファイルポインタから 1 行取得する 6196
« fgetcsv fgetss » PHP Manual ファイルシステム 関数 ファイルポインタから 1 行取得する 検索 fgets (PHP 4, PHP 5, PHP 7, PHP 8) fgets — ファイルポインタから 1 行取得する 説明 function fgets ( resource $stream , ? int $length = null ): string ... は false を返します。 エラーが起こった場合、 false を返します。 例 例1 行毎にファイルを読み込む <?php $fp = @ fopen ( "/tmp/inputfile.txt" , "r" ); if ( $fp ) { while (( $buffer = fgets ( $fp , 4096 )) !== false ) { echo $buffer , PHP_EOL ; } if (! feof ( ...
https://man.mtool.work/php/8.3/function.fgets.html
PREV 1 NEXT