Results of 1 - 10 of about 26 for readFile (0.002 sec.)
- readfile — ファイルを出力する | PHP 8.3 12497
- readfile (PHP 4, PHP 5, PHP 7, PHP 8) readfile — ファイルを出力する 説明 function readfile ( string $filename , bool $use_include_path = false , ? resource $context = null ): int | false ファイルを読んで標準出力に書き出します。 パラメータ f
... 読み込んだバイト数を返します。 失敗した場合に false を返します エラー / 例外 失敗したときは E_WARNING が発生します。 例 例1 readfile() によるダウンロードの強制 <?php $file = 'monkey.gif' ; if ( file_exists ( $file )) { header ( 'Content-Description: File ... ader ( 'Cache-Control: must-revalidate' ); header ( 'Pragma: public' ); header ( 'Content-Length: ' . filesize ( $file )); readfile ( $file ); exit; } ?> 上の例の出力は、 たとえば以下のようになります。 注意 注意 : readfile() 自体にはメモリに関する問題はな ...
-
https://man.mtool.work/php/8.3/function.readfile.html
- Swoole\Async::readFile — Read a file asynchronously. | PHP 8.3 12381
- Swoole\Async::readFile (PECL swoole >= 1.9.0) Swoole\Async::readFile — Read a file asynchronously. 説明 public static function Swoole\Async::readFile ( string $filename , callable $callback ): void パラメータ filename The filename of the fi
...
-
https://man.mtool.work/php/8.3/swoole-async.readfile.html
- swoole_async_readfile — Read a file asynchronously | PHP 8.3 11902
- swoole_async_readfile (PECL swoole >= 1.9.0) swoole_async_readfile — Read a file asynchronously 説明 function swoole_async_readfile ( string $filename , callable $callback ): bool パラメータ filename The filename of the file being read. cal
...
-
https://man.mtool.work/php/8.3/function.swoole-async-readfile.html
- The Swoole\Async class | PHP 8.3 9621
- The Swoole\Async class (PECL swoole >= 1.9.0) はじめに クラス概要 class Swoole\Async { /* メソッド */ public static function dnsLookup ( string $hostname , callable $callback ): void public static function read ( string $filename , callable
... $callback , int $chunk_size = ? , int $offset = ? ): bool public static function readFile ( string $filename , callable $callback ): void public static function set ( array $settings ): void public static functio ... ing $flags = ? ): void } 目次 Swoole\Async::dnsLookup — Async and non-blocking hostname to IP lookup. Swoole\Async::read — Read file stream asynchronously. Swoole\Async::readFile — Read a file asynchronously. Swoole\Async::set — Update the async I/O opti ...
-
https://man.mtool.work/php/8.3/class.swoole-async.html
- WinCache 関数への切り替え | PHP 8.3 9257
- WinCache 関数への切り替え 注意: wincache.rerouteini は WinCache 1.3.7.0 で削除されました。かわりに、自動的な関数置き換え機能を利用します。 wincache.reroute_enabled を参照ください。 WinCache の関数切り替え機能 (WinCache 1.2.0 以降で使用可能で
... ンスを向上させることができるでしょう。 最適化した実装が用意されている関数は、次のとおりです。 file_exists file_get_contents readfile is_readable is_writable is_dir realpath filesize WinCache の関数切り替え機能を使えるよう設定するには、WinCache のインストー ... e.ini ファイルの内容 [FunctionRerouteList] file_exists=wincache_file_exists file_get_contents:2=wincache_file_get_contents readfile:2=wincache_readfile is_readable=wincache_is_readable is_writable=wincache_is_writable is_writeable=wincache_is_writable is ...
-
https://man.mtool.work/php/8.3/wincache.reroutes.html
- php:// — さまざまな入出力ストリームへのアクセス | PHP 8.3 9257
- php:// php:// — さまざまな入出力ストリームへのアクセス 説明 PHP ではさまざまな入出力ストリームを提供しています。 これらを使うと、PHP 自身の入出力ストリームへのアクセスや 標準入出力と標準エラー出力のファイルディスクリプタへのアクセス、 メモリ
... /filter は、 フィルタ アプリケーションが ストリームをオープンすることを許可するために設計されたメタラッパーです。 これは、 readfile() 、 file() および file_get_contents() のようなオールインワンの ファイル関数とともに使用すると有用です。これらの関数には、 ... lter 指定の最後に存在し、フィルタリング したいストリームを指している必要があります。 <?php /* これは単純に以下と同じです。 readfile("http://www.example.com"); なぜなら、実際のところ何のフィルタ処理も行われないからです。 */ readfile ( "php://filter/resour ... り、それらはパイプ文字 | で区切られます。 <?php /* これは、www.example.com のすべての内容を 大文字に変換して出力します。 */ readfile ( "php://filter/read=string.toupper/resource=http://www.example.com" ); /* これは上の例と同じですが、それに加えて ROT13 エ ...
-
https://man.mtool.work/php/8.3/wrappers.php.html
- mailparse_uudecode_all — ファイルポインタからデータをスキャンし、uuencode され... 8893
- mailparse_uudecode_all (PECL mailparse >= 0.9.0) mailparse_uudecode_all — ファイルポインタからデータをスキャンし、uuencode されたファイルを展開する 説明 function mailparse_uudecode_all ( resource $fp ): array 指定したファイルポインタからのデ
... I<R!A('1E<W0* ` end EOD; $fp = tmpfile (); fwrite ( $fp , $text ); $data = mailparse_uudecode_all ( $fp ); echo "BODY\n" ; readfile ( $data [ 0 ][ "filename" ]); echo "UUE ( { $data [ 1 ][ 'origfilename' ]} )\n" ; readfile ( $data [ 1 ][ "filename" ]); / ...
-
https://man.mtool.work/php/8.3/function.mailparse-uudecode-all.html
- fpassthru — ファイルポインタ上に残っているすべてのデータを出力する | PHP 8.3 8530
- fpassthru (PHP 4, PHP 5, PHP 7, PHP 8) fpassthru — ファイルポインタ上に残っているすべてのデータを出力する 説明 function fpassthru ( resource $stream ): int 与えられたファイルポインタを EOF まで読み、結果を出力バッファに書き出します。 ファイ
... コールする必要があります。 ファイルを更新したり特定のオフセットを探すのではなく 内容を出力バッファにダンプしたいだけの場合、 readfile() を使用することが可能です。 この場合、 fopen() コールは必要ありません。 パラメータ stream ファイルポインタは、有効なファイ ... ルを扱う場合は、必要でなくても b フラグを使用するようにしましょう。 それにより、スクリプトの可搬性がより高くなります。 参考 readfile() - ファイルを出力する fopen() - ファイルまたは URL をオープンする popen() - プロセスへのファイルポインタをオープンする fs ...
-
https://man.mtool.work/php/8.3/function.fpassthru.html
- stream_context_get_default — デフォルトのストリームコンテキストを取得する | PHP... 8530
- stream_context_get_default (PHP 5 >= 5.1.0, PHP 7, PHP 8) stream_context_get_default — デフォルトのストリームコンテキストを取得する 説明 function stream_context_get_default ( ? array $options = null ): resource ( fopen() 、 file_get_conten
... GET リクエストを、プロキシサーバー 10.54.1.39 * に対して送信します。コンテキストオプション $default_opts を使用します。 */ readfile ( 'http://www.example.com' ); /* POST リクエストを、直接 www.example.com に送信します。 * コンテキストオプション $alternat ... e_opts を使用します。 */ readfile ( 'http://www.example.com' , false , $alternate ); ?> 参考 stream_context_create() - ストリームコンテキストを作成する stre ...
-
https://man.mtool.work/php/8.3/function.stream-context-get-default.html
- stream_filter_register — ユーザー定義のストリームフィルタを登録する | PHP 8.3 8050
- stream_filter_register (PHP 5, PHP 7, PHP 8) stream_filter_register — ユーザー定義のストリームフィルタを登録する 説明 function stream_filter_register ( string $filter_name , string $class ): bool stream_filter_register() は、 fopen() や fre
... e1\n" ); fwrite ( $fp , "Word - 2\n" ); fwrite ( $fp , "Easy As 123\n" ); fclose ( $fp ); /* ファイルを読み出し出力する */ readfile ( "foo-bar.txt" ); ?> 上の例の出力は以下となります。 LINE1 WORD - 2 EASY AS 123 例2 複数のフィルタ名に対応する一般的なフィ ... e1\n" ); fwrite ( $fp , "Word - 2\n" ); fwrite ( $fp , "Easy As 123\n" ); fclose ( $fp ); /* ファイルを読み出し出力する */ readfile ( "foo-bar.txt" ); ?> 上の例の出力は以下となります。 LINE1 WORD - 2 EASY AS 123 参考 stream_wrapper_register() - PHP のクラ ...
-
https://man.mtool.work/php/8.3/function.stream-filter-register.html