« PHP 8.3 Manual トップ
著作権 »
per page, with , order by , clip by
Results of 1 - 10 of about 233 for local (0.004 sec.)
GearmanClient::addTaskBackground — Add a background task to be run in parallel ... 10018
GearmanClient::addTaskBackground (PECL gearman >= 0.5.0) GearmanClient::addTaskBackground — Add a background task to be run in parallel 説明 public function GearmanClient::addTaskBackground ( string $function_name , string | int | float $wo ... The worker script echo "Starting\n" ; # Create our worker object. $gmworker = new GearmanWorker (); # Add default server (localhost). $gmworker -> addServer (); # Register function "reverse" with the server. $gmworker -> addFunction ( "reverse" , "re ... what we want to send back to the client. return $result ; } ?> Worker output for two workers running: Received job: H:foo.local:65 Workload: !dlroW olleH (12) 1/12 complete Received job: H:foo.local:66 Workload: Hello World! (12) Sending status: 1/12 ... s: 12/12 complete Sending status: 12/12 complete Result: !dlroW olleH Result: Hello World! Client output: STATUS: 1, H:foo.local:66 - 1/12 STATUS: 1, H:foo.local:66 - 2/12 STATUS: 1, H:foo.local:66 - 3/12 STATUS: 1, H:foo.local:66 - 4/12 STATUS: 1, H: ...
https://man.mtool.work/php/8.3/gearmanclient.addtaskbackground.html
Basic Gearman client and worker, submitting tasks | PHP 8.3 9946
Basic Gearman client and worker, submitting tasks 例1 Basic Gearman client and worker, submitting tasks In this example, the basic reverse client extended to run two tasks in parallel. The reverse worker is unchanged except to add sending o ... f data back during processing. <?php # create the gearman client $gmc = new GearmanClient (); # add the default server (localhost) $gmc -> addServer (); # register some callbacks $gmc -> setCreatedCallback ( "reverse_created" ); $gmc -> setDataCall ... "\n" ; } ?> <?php echo "Starting\n" ; # Create our worker object. $gmworker = new GearmanWorker (); # Add default server (localhost). $gmworker -> addServer (); # Register function "reverse" with the server. Change the worker function to # "reverse_f ... > 上の例の出力は、 たとえば以下のようになります。 % php reverse_worker.php Starting Waiting for job... Received job: H:foo.local:45 Workload: foo (3) 1/3 complete 2/3 complete 3/3 complete Result: oof Received job: H:foo.local:44 Workload: bar (3) 1/3 ...
https://man.mtool.work/php/8.3/gearman.examples-reverse-task.html
The EventSslContext class | PHP 8.3 9884
The EventSslContext class (PECL event >= 1.2.6-beta) はじめに Represents SSL_CTX structure. Provides methods and properties to configure the SSL context. クラス概要 final class EventSslContext { /* 定数 */ const int SSLv2_CLIENT_METHOD = 1 ... ; const int SSLv3_SERVER_METHOD = 6 ; const int SSLv23_SERVER_METHOD = 7 ; const int TLS_SERVER_METHOD = 8 ; const int OPT_LOCAL_CERT = 1 ; const int OPT_LOCAL_PK = 2 ; const int OPT_PASSPHRASE = 3 ; const int OPT_CA_FILE = 4 ; const int OPT_CA_PATH = ... st int OPT_VERIFY_PEER = 7 ; const int OPT_VERIFY_DEPTH = 8 ; const int OPT_CIPHERS = 9 ; /* プロパティ */ public string $ local_cert ; public string $ local_pk ; /* メソッド */ public function __construct ( string $method , string $options ) } プロパ ... ティ local_cert Path to local certificate file on filesystem. It must be a PEM -encoded file which contains certificate. It can optio ...
https://man.mtool.work/php/8.3/class.eventsslcontext.html
Nginx 1.4.x (Unix システム用) | PHP 8.3 9105
Nginx 1.4.x (Unix システム用) このドキュメントは、Nginx 1.4.x HTTPサーバー 向けに PHP を PHP-FPM とともにインストールし、設定する方法を示します。 このガイドは、あなたが Nginx をソースコードからビルドしたことを想定しています。 よって、すべて ... のバイナリと設定は /usr/local/nginx にあると想定しています。 仮にこれに当てはまらず、Nginx を他の手段で取得した場合は、 » Nginx Wiki を参照し、 このマニ ... enable-fpm --with-mysqli make sudo make install 設定ファイルを取得し、正しい場所に移動します。 cp php.ini-development /usr/local/php/php.ini cp /usr/local/etc/php-fpm.d/www.conf.default /usr/local/etc/php-fpm.d/www.conf cp sapi/fpm/php-fpm /usr/local/ ... x_pathinfo ディレクティブを 0 に設定することで、 この設定を行うことができます。 php.ini をエディタで読み込みます: vim /usr/local/php/php.ini cgi.fix_pathinfo= の行を探し、以下のように修正します: cgi.fix_pathinfo=0 サービスを開始する前に、php-fpm が ww ...
https://man.mtool.work/php/8.3/install.unix.nginx.html
設定ファイル | PHP 8.3 9033
設定ファイル メインの設定ファイル ( php.ini ) は PHP の起動時に読み込まれます。 PHP のサーバーモジュール版では、Web サーバーの起動時に 一度だけ読み込まれます。 CGI 版と CLI 版では、スクリプトが呼び出される度に読み込まれます。 PHP は、メイン ... t OS 上の 32bit ビルドの PHP、 もしくは 64bit OS 上の 64bit ビルドの PHP では、 以下のレジストリキーを順に調べます。 [HKEY_LOCAL_MACHINE\SOFTWARE\PHP\x.y.z] [HKEY_LOCAL_MACHINE\SOFTWARE\PHP\x.y] [HKEY_LOCAL_MACHINE\SOFTWARE\PHP\x] [HKEY_LOCAL_MACHINE\ ... があれば、最初に見つかった値を使います。 64bit OS 上の 32bit ビルドの PHP では、 以下のレジストリキーを順に調べます。 [HKEY_LOCAL_MACHINE\SOFTWARE\WOW6432Node\PHP\x.y.z] [HKEY_LOCAL_MACHINE\SOFTWARE\WOW6432Node\PHP\x.y] [HKEY_LOCAL_MACHINE\SOFTWARE\WOW ... 6432Node\PHP\x] [HKEY_LOCAL_MACHINE\SOFTWARE\WOW6432Node\PHP] これらのキーのいずれかに IniFilePath の値があれば、最初に見つかった値を使います。 設定フ ...
https://man.mtool.work/php/8.3/configuration.file.html
stream_is_local — ローカルストリームかどうかを調べる | PHP 8.3 9033
stream_is_local (PHP 5 >= 5.2.4, PHP 7, PHP 8) stream_is_local — ローカルストリームかどうかを調べる 説明 function stream_is_local ( resource | string $stream ): bool ストリームあるいは URL が、ローカルのものであるかどうかを調べます。 パラメ ... 調べたいストリームリソースあるいは URL。 戻り値 成功した場合に true を、失敗した場合に false を返します。 例 例1 stream_is_local() の例 基本的な使用例です。 <?php var_dump ( stream_is_local ( "http://example.com" )); var_dump ( stream_is_local ( "/etc ...
https://man.mtool.work/php/8.3/function.stream-is-local.html
Yaf_Loader::getNamespacePath — Retrieve the library path of a class | PHP 8.3 8510
Yaf_Loader::getNamespacePath (Yaf >=3.2.0) Yaf_Loader::getNamespacePath — Retrieve the library path of a class 説明 public function Yaf_Loader::getNamespacePath ( string $class_name ): string Retrieve the library directory a class would be ... looked up in. パラメータ class_name The class name whose library directory is requested. 戻り値 The local library directory if the class belongs to a registered local namespace, otherwise the global library directory (falling ba ... ck to the local one when the global one is not set). 例 例1 Yaf_Loader::getNamespacePath() example <?php $app = new Yaf_Application ( __DI ... R__ . "/conf/application.ini" ); $loader = Yaf_Loader :: getInstance (); $loader -> registerLocalNamespace ( "Models" ); $loader -> setLibraryPath ( "/usr/local/share/yaf/library" , true ); /* "Models" is a registered lo ...
https://man.mtool.work/php/8.3/yaf-loader.getnamespacepath.html
例 | PHP 8.3 7987
例 例1 Simple HTTP client <?php // Read callback function readcb ( $bev , $base ) { //$input = $bev->input; //$bev->getInput(); //$pos = $input->search("TTP"); $pos = $bev -> input -> search ( "TTP" ); while (( $n = $bev -> input -> remove ... . Otherwise there's no point to crypto. if (! EventUtil :: sslRandPoll ()) { exit( "EventUtil::sslRandPoll failed\n" ); } $local_cert = __DIR__ . "/cert.pem" ; $local_pk = __DIR__ . "/privkey.pem" ; if (! file_exists ( $local_cert ) || ! file_exists ( ... $local_pk )) { echo "Couldn't read $local_cert or $local_pk file. To generate a key\n" , "and self-signed certificate, run:\n" , ... " openssl genrsa -out $local_pk 2048\n" , " openssl req -new -key $local_pk -out cert.req\n" , " openssl x509 -req -days 365 -in cert.req -signkey $loc ...
https://man.mtool.work/php/8.3/event.examples.html
ftp_get — FTP サーバーからファイルをダウンロードする | PHP 8.3 7854
ftp_get (PHP 4, PHP 5, PHP 7, PHP 8) ftp_get — FTP サーバーからファイルをダウンロードする 説明 function ftp_get ( FTP\Connection $ftp , string $local_filename , string $remote_filename , int $mode = FTP_BINARY , int $offset = 0 ): bool ftp_ ... ーバーからリモートファイルを取得し、 それをローカルファイルに保存します。 パラメータ ftp FTP\Connection クラスのインスタンス local_filename ローカルファイルのパス(ファイルがすでに存在する場合は上書きされます)。 remote_filename リモートファイルのパス。 ... ションになりました。 これより前のバージョンでは、このパラメータは必須でした。 例 例1 ftp_get() の例 <?php // 変数を定義する $local_file = 'local.zip' ; $server_file = 'server.zip' ; // 接続を確立する $ftp = ftp_connect ( $ftp_server ); // ユーザー名とパ ... ードでログインする $login_result = ftp_login ( $ftp , $ftp_user_name , $ftp_user_pass ); // $server_file をダウンロードし、$local_file への保存を試みる if ( ftp_get ( $ftp , $local_file , $server_file , FTP_BINARY )) { echo "Successfully written to $lo ...
https://man.mtool.work/php/8.3/function.ftp-get.html
EventSslContext::__construct — Constructs an OpenSSL context for use with Event... 7731
EventSslContext::__construct (PECL event >= 1.2.6-beta) EventSslContext::__construct — Constructs an OpenSSL context for use with Event classes 説明 public function EventSslContext::__construct ( string $method , string $options ) Creates S ... struct() example <?php $ctx = new EventSslContext ( EventSslContext :: SSLv3_SERVER_METHOD , array( EventSslContext :: OPT_LOCAL_CERT => $local_cert , EventSslContext :: OPT_LOCAL_PK => $local_pk , EventSslContext :: OPT_PASSPHRASE => "echo server" , ...
https://man.mtool.work/php/8.3/eventsslcontext.construct.html
PREV 1 2 3 4 5 6 7 8 9 10 NEXT