Results of 1 - 10 of about 113 for setopt (0.002 sec.)
- CURL 転送用の複数のオプションを設定する 9484
- « curl_setopt curl_share_close » PHP Manual cURL 関数 CURL 転送用の複数のオプションを設定する 検索 curl_setopt_array (PHP 5 >= 5.1.3, PHP 7, PHP 8) curl_setopt_array — CURL 転送用の複数のオプションを設定する 説明 function curl_setopt_array
... ション用の複数のオプションを設定します。 この関数が便利なのは大量の cURL オプションを設定する場合で、 何度も繰り返して curl_setopt() をコールせずにすみます。 パラメータ handle curl_init() が返す cURL ハンドル。 options 設定するオプションとその値を指定し ... た配列。キーとして使用できるのは、 有効な curl_setopt() 定数か、 その定数に対応する整数値だけです。 戻り値 すべてのオプションがうまく設定できた場合に true を返します。 うまく設 ... のオプションを適切に設定します $options = array( CURLOPT_URL => 'http://www.example.com/' , CURLOPT_HEADER => false ); curl_setopt_array ( $ch , $options ); // URL の内容を取得し、ブラウザに渡します curl_exec ( $ch ); ?> 注意 注意 : curl_setopt() と同様 ...
-
https://man.mtool.work/php/8.3/function.curl-setopt-array.html
- CURLFile オブジェクトを作る 9434
- « CURLFile CURLFile::getFilename » PHP Manual CURLFile CURLFile オブジェクトを作る 検索 CURLFile::__construct curl_file_create (PHP 5 >= 5.5.0, PHP 7, PHP 8) CURLFile::__construct -- curl_file_create — CURLFile オブジェクトを作る 説明 オブジ
... LFile ( 'cats.jpg' , 'image/jpeg' , 'test_name' ); // POST データを設定します $data = array( 'test_file' => $cfile ); curl_setopt ( $ch , CURLOPT_POST , 1 ); curl_setopt ( $ch , CURLOPT_POSTFIELDS , $data ); // このハンドルを実行します curl_exec ( $ch ... reate ( 'cats.jpg' , 'image/jpeg' , 'test_name' ); // POST データを設定します $data = array( 'test_file' => $cfile ); curl_setopt ( $ch , CURLOPT_POST , 1 ); curl_setopt ( $ch , CURLOPT_POSTFIELDS , $data ); // このハンドルを実行します curl_exec ( $ch ... 数のファイルをアップロードする例 オブジェクト指向型 <?php $request = curl_init ( 'http://www.example.com/upload.php' ); curl_setopt ( $request , CURLOPT_POST , true ); curl_setopt ( $request , CURLOPT_SAFE_UPLOAD , true ); curl_setopt ( $request , CURLOP ...
-
https://man.mtool.work/php/8.3/curlfile.construct.html
- CURLFile オブジェクトを作る 9434
- « CURLFile CURLFile::getFilename » PHP Manual CURLFile CURLFile オブジェクトを作る 検索 CURLFile::__construct curl_file_create (PHP 5 >= 5.5.0, PHP 7, PHP 8) CURLFile::__construct -- curl_file_create — CURLFile オブジェクトを作る 説明 オブジ
... LFile ( 'cats.jpg' , 'image/jpeg' , 'test_name' ); // POST データを設定します $data = array( 'test_file' => $cfile ); curl_setopt ( $ch , CURLOPT_POST , 1 ); curl_setopt ( $ch , CURLOPT_POSTFIELDS , $data ); // このハンドルを実行します curl_exec ( $ch ... reate ( 'cats.jpg' , 'image/jpeg' , 'test_name' ); // POST データを設定します $data = array( 'test_file' => $cfile ); curl_setopt ( $ch , CURLOPT_POST , 1 ); curl_setopt ( $ch , CURLOPT_POSTFIELDS , $data ); // このハンドルを実行します curl_exec ( $ch ... 数のファイルをアップロードする例 オブジェクト指向型 <?php $request = curl_init ( 'http://www.example.com/upload.php' ); curl_setopt ( $request , CURLOPT_POST , true ); curl_setopt ( $request , CURLOPT_SAFE_UPLOAD , true ); curl_setopt ( $request , CURLOP ...
-
https://man.mtool.work/php/8.3/curlfile.construct.html
- CURL 転送用の複数のオプションを設定する 9434
- « curl_setopt curl_share_close » PHP Manual cURL 関数 CURL 転送用の複数のオプションを設定する 検索 curl_setopt_array (PHP 5 >= 5.1.3, PHP 7, PHP 8) curl_setopt_array — CURL 転送用の複数のオプションを設定する 説明 function curl_setopt_array
... ション用の複数のオプションを設定します。 この関数が便利なのは大量の cURL オプションを設定する場合で、 何度も繰り返して curl_setopt() をコールせずにすみます。 パラメータ handle curl_init() が返す cURL ハンドル。 options 設定するオプションとその値を指定し ... た配列。キーとして使用できるのは、 有効な curl_setopt() 定数か、 その定数に対応する整数値だけです。 戻り値 すべてのオプションがうまく設定できた場合に true を返します。 うまく設 ... のオプションを適切に設定します $options = array( CURLOPT_URL => 'http://www.example.com/' , CURLOPT_HEADER => false ); curl_setopt_array ( $ch , $options ); // URL の内容を取得し、ブラウザに渡します curl_exec ( $ch ); ?> 注意 注意 : curl_setopt() と同様 ...
-
https://man.mtool.work/php/8.3/function.curl-setopt-array.html
- Set client options 9119
- « Yar_Client::getOpt Yar_Concurrent_Client » PHP Manual Yar_Client Set client options 検索 Yar_Client::setOpt (PECL yar >= 1.0.0) Yar_Client::setOpt — Set client options 説明 public function Yar_Client::setOpt ( int $name , mixed $value ):
... ion expects a specific value type (string, boolean, integer or array), described on the constants page. 例 例1 Yar_Client::setOpt() example <?php $client = new Yar_Client ( "http://api.example.com/operator.php" ); /* Set timeout to 1s */ $client -> set ... Opt ( YAR_OPT_TIMEOUT , 1000 ); /* Set packager to JSON */ $client -> setOpt ( YAR_OPT_PACKAGER , "json" ); /* Set custom headers */ $client -> setOpt ( YAR_OPT_HEADER , [ "X-Api-Key: value" ]); /* R ... oute through an HTTP proxy */ $client -> setOpt ( YAR_OPT_PROXY , "127.0.0.1:8888" ); /* call remote service */ $result = $client -> some_method ( "parameter" ); ?> 参考 ...
-
https://man.mtool.work/php/8.3/yar-client.setopt.html
- Set client options 9119
- « Yar_Client::getOpt Yar_Concurrent_Client » PHP Manual Yar_Client Set client options 検索 Yar_Client::setOpt (PECL yar >= 1.0.0) Yar_Client::setOpt — Set client options 説明 public function Yar_Client::setOpt ( int $name , mixed $value ):
... ion expects a specific value type (string, boolean, integer or array), described on the constants page. 例 例1 Yar_Client::setOpt() example <?php $client = new Yar_Client ( "http://api.example.com/operator.php" ); /* Set timeout to 1s */ $client -> set ... Opt ( YAR_OPT_TIMEOUT , 1000 ); /* Set packager to JSON */ $client -> setOpt ( YAR_OPT_PACKAGER , "json" ); /* Set custom headers */ $client -> setOpt ( YAR_OPT_HEADER , [ "X-Api-Key: value" ]); /* R ... oute through an HTTP proxy */ $client -> setOpt ( YAR_OPT_PROXY , "127.0.0.1:8888" ); /* call remote service */ $result = $client -> some_method ( "parameter" ); ?> 参考 ...
-
https://man.mtool.work/php/8.3/yar-client.setopt.html
- Read a client option 8740
- « Yar_Client::__construct Yar_Client::setOpt » PHP Manual Yar_Client Read a client option 検索 Yar_Client::getOpt (PECL yar >= 1.1.0) Yar_Client::getOpt — Read a client option 説明 public function Yar_Client::getOpt ( int $name ): mixed Ret
... urns the value previously set with Yar_Client::setOpt() , or with the options parameter of Yar_Client::__construct() . パラメータ name One of the YAR_OPT_* constants, see Yar_C ... lient::setOpt() . 戻り値 The option value, or false if the option has not been set on this client or the option name is unknown. 例 例1 ... Yar_Client::getOpt() example <?php $client = new Yar_Client ( "http://api.example.com/operator.php" ); $client -> setOpt ( YAR_OPT_TIMEOUT , 1000 ); var_dump ( $client -> getOpt ( YAR_OPT_TIMEOUT )); var_dump ( $client -> getOpt ( YAR_OPT_PACK ...
-
https://man.mtool.work/php/8.3/yar-client.getopt.html
- Read a client option 8740
- « Yar_Client::__construct Yar_Client::setOpt » PHP Manual Yar_Client Read a client option 検索 Yar_Client::getOpt (PECL yar >= 1.1.0) Yar_Client::getOpt — Read a client option 説明 public function Yar_Client::getOpt ( int $name ): mixed Ret
... urns the value previously set with Yar_Client::setOpt() , or with the options parameter of Yar_Client::__construct() . パラメータ name One of the YAR_OPT_* constants, see Yar_C ... lient::setOpt() . 戻り値 The option value, or false if the option has not been set on this client or the option name is unknown. 例 例1 ... Yar_Client::getOpt() example <?php $client = new Yar_Client ( "http://api.example.com/operator.php" ); $client -> setOpt ( YAR_OPT_TIMEOUT , 1000 ); var_dump ( $client -> getOpt ( YAR_OPT_TIMEOUT )); var_dump ( $client -> getOpt ( YAR_OPT_PACK ...
-
https://man.mtool.work/php/8.3/yar-client.getopt.html
- cURL 共有ハンドルのオプションを設定する 8639
- « curl_share_init_persistent curl_share_strerror » PHP Manual cURL 関数 cURL 共有ハンドルのオプションを設定する 検索 curl_share_setopt (PHP 5 >= 5.5.0, PHP 7, PHP 8) curl_share_setopt — cURL 共有ハンドルのオプションを設定する 説明 function
... curl_share_setopt ( CurlShareHandle $share_handle , int $option , mixed $value ): bool 指定した cURL 共有ハンドルに、オプションを設定します。 ... ラスのインスタンスを期待するようになりました。 これより前のバージョンでは、 resource を期待していました。 例 例1 curl_share_setopt() の例 この例は、cURL 共有ハンドルを作って二つの cURL ハンドルを追加し、 それぞれを実行してクッキーのデータを共有します。 ... <?php // cURL 共有ハンドルを作り、クッキーのデータを共有させます $sh = curl_share_init (); curl_share_setopt ( $sh , CURLSHOPT_SHARE , CURL_LOCK_DATA_COOKIE ); // 最初の cURL ハンドルを作り、共有ハンドルを割り当てます $ch1 = curl_i ...
-
https://man.mtool.work/php/8.3/function.curl-share-setopt.html
- cURL 共有ハンドルのオプションを設定する 8639
- « curl_share_init_persistent curl_share_strerror » PHP Manual cURL 関数 cURL 共有ハンドルのオプションを設定する 検索 curl_share_setopt (PHP 5 >= 5.5.0, PHP 7, PHP 8) curl_share_setopt — cURL 共有ハンドルのオプションを設定する 説明 function
... curl_share_setopt ( CurlShareHandle $share_handle , int $option , mixed $value ): bool 指定した cURL 共有ハンドルに、オプションを設定します。 ... ラスのインスタンスを期待するようになりました。 これより前のバージョンでは、 resource を期待していました。 例 例1 curl_share_setopt() の例 この例は、cURL 共有ハンドルを作って二つの cURL ハンドルを追加し、 それぞれを実行してクッキーのデータを共有します。 ... <?php // cURL 共有ハンドルを作り、クッキーのデータを共有させます $sh = curl_share_init (); curl_share_setopt ( $sh , CURLSHOPT_SHARE , CURL_LOCK_DATA_COOKIE ); // 最初の cURL ハンドルを作り、共有ハンドルを割り当てます $ch1 = curl_i ...
-
https://man.mtool.work/php/8.3/function.curl-share-setopt.html