Results of 1 - 2 of about 2 for testfile (0.001 sec.)
- PharFileInfo::__construct — Phar エントリオブジェクトを作成する | PHP 8.3 11228
- PharFileInfo::__construct (PHP 5 >= 5.3.0, PHP 7, PHP 8, PECL phar >= 1.0.0) PharFileInfo::__construct — Phar エントリオブジェクトを作成する 説明 public function PharFileInfo::__construct ( string $filename ) これは直接コールしてはいけません
... ーされます。 例 例1 PharFileInfo::__construct() の例 <?php try { $p = new Phar ( '/path/to/my.phar' , 0 , 'my.phar' ); $p [ 'testfile.txt' ] = "hi\nthere\ndude" ; $file = $p [ 'testfile.txt' ]; foreach ( $file as $line => $text ) { echo "行番号 $line : $te ... xt " ; } // これも動作します $file = new PharFileInfo ( 'phar:///path/to/my.phar/testfile.txt' ); foreach ( $file as $line => $text ) { echo "行番号 $line : $text " ; } } catch ( Exception $e ) { echo 'Phar 操作に ...
-
https://man.mtool.work/php/8.3/pharfileinfo.construct.html
- 例 | PHP 8.3 7485
- 例 この例は、テンポラリファイルをオープンし、テスト用の文字列を書き込みます。 この後、このファイルの内容を出力します。 例1 簡単な bzip2 の例 <?php $filename = "/tmp/testfile.bz2" ; $str = "This is a test string.\n" ; // 書き込み用にオープン
...
-
https://man.mtool.work/php/8.3/bzip2.examples.html
PREV
1
NEXT