Results of 1 - 10 of about 67 for javascript (0.004 sec.)
- The MongoDB\BSON\Javascript class | PHP 8.3 11124
- The MongoDB\BSON\Javascript class (mongodb >=1.0.0) はじめに BSON type for Javascript code. An optional scope document may be specified that maps identifiers to values and defines the scope in which the code should be evaluated by the serve
... r. 注意 : This BSON type is mainly used when executing database commands that take a Javascript function as a parameter, such as » mapReduce . クラス概要 final class MongoDB\BSON\Javascript implements MongoDB\BSON\Java ... Serializable interface. PECL mongodb 1.12.0 Implements Stringable for PHP 8.0+. PECL mongodb 1.3.0 Implements MongoDB\BSON\JavascriptInterface . PECL mongodb 1.2.0 Implements Serializable and JsonSerializable . 目次 MongoDB\BSON\Javascript::__construct — C ... onstruct a new Javascript MongoDB\BSON\Javascript::getCode — Returns the Javascript's code MongoDB\BSON\Javascript::getScope — Returns the Javascrip ...
-
https://man.mtool.work/php/8.3/class.mongodb-bson-javascript.html
- MongoDB\BSON\Javascript::__construct — Construct a new Javascript | PHP 8.3 11053
- MongoDB\BSON\Javascript::__construct (mongodb >=1.0.0) MongoDB\BSON\Javascript::__construct — Construct a new Javascript 説明 final public function MongoDB\BSON\Javascript::__construct ( string $code , array | object | null $scope = null )
... パラメータ code ( string ) Javascript code. scope ( array | object ) Javascript scope. エラー / 例外 Throws MongoDB\Driver\Exception\InvalidArgumentException on ... n is thrown if code contains null bytes. Previously, values would be truncated at the first null byte. 例 例1 MongoDB\BSON\Javascript::__construct() example <?php $code = new MongoDB\BSON\Javascript ( 'function() { return 1; }' ); var_dump ( $code ); $code ... ws = new MongoDB\BSON\Javascript ( 'function() { return foo; }' , [ 'foo' => 'bar' ]); var_dump ( $codews ); ?> 上の例の出力は以下となります。 object(Mongo ...
-
https://man.mtool.work/php/8.3/mongodb-bson-javascript.construct.html
- MongoDB\BSON\Javascript::__toString — Returns the Javascript's code | PHP 8.3 11011
- MongoDB\BSON\Javascript::__toString (mongodb >=1.2.0) MongoDB\BSON\Javascript::__toString — Returns the Javascript's code 説明 final public function MongoDB\BSON\Javascript::__toString (): string このメソッドは次のメソッドのエイリアスです。
... MongoDB\BSON\Javascript::getCode() . パラメータ この関数にはパラメータはありません。 戻り値 Returns the Javascript's code. 例 例1 MongoDB\BSON\Jav ... ascript::__toString() example <?php var_dump ((string) new MongoDB\BSON\Javascript ( 'function foo(bar) { return bar; }' )); ?> 上の例の出力は以下となります。 string(33) "function foo(bar) { return bar; }" ... 参考 MongoDB\BSON\Javascript::getCode() - Returns the Javascript's code » BSON Types ...
-
https://man.mtool.work/php/8.3/mongodb-bson-javascript.tostring.html
- Script Injection Attacks | PHP 8.3 10897
- Script Injection Attacks If you are using JavaScript, make sure that any variables that cross the PHP- to-JavaScript boundary are passed in the scope field of MongoDB\BSON\Javascript , not interpolated into the JavaScript string. This can c
... ome up when using $where clauses in queries, mapReduce and group commands, and any other time you may pass JavaScript into the database. For example, suppose we have some JavaScript to greet a user in the database logs. We could do: <?php $ ... o, $username !');" ] ); $r = $m -> executeCommand ( 'dramio' , $cmd ); ?> However, what if a malicious user passes in some JavaScript? <?php $m = new MongoDB\Driver\Manager ; // Don't do this!!! $username = $_GET [ 'field' ]; // $username is set to "'); db ... [ 'eval' => "print('Hello, $username !');" ] ); $r = $m -> executeCommand ( 'dramio' , $cmd ); ?> Now MongoDB executes the JavaScript string "print('Hello, '); db.users.drop(); print('!');" . This attack is easy to avoid: use args to pass variables from PH ...
-
https://man.mtool.work/php/8.3/mongodb.security.script_injection.html
- fdf_set_on_import_javascript — Acrobat が FDF をオープンした際に実行される java... 10057
- fdf_set_on_import_javascript (PHP 4 >= 4.3.0, PHP 5 < 5.3.0, PECL fdf SVN) fdf_set_on_import_javascript — Acrobat が FDF をオープンした際に実行される javascript のコードを追加する 説明 function fdf_set_on_import_javascript ( resource $fdf_d
... mport ): bool 警告 この関数は、 現在のところ詳細な情報はありません。引数のリストのみが 記述されています。 参考 fdf_add_doc_javascript() - FDF ドキュメントに javascript コードを追加する fdf_set_javascript_action() - フィールドの javascript アクションを設定す ...
-
https://man.mtool.work/php/8.3/function.fdf-set-on-import-javascript.html
- MongoDB\BSON\Javascript::getScope — Returns the Javascript's scope document | P... 9901
- MongoDB\BSON\Javascript::getScope (mongodb >=1.2.0) MongoDB\BSON\Javascript::getScope — Returns the Javascript's scope document 説明 final public function MongoDB\BSON\Javascript::getScope (): ? object パラメータ この関数にはパラメータはあり
... ません。 戻り値 Returns the Javascript's scope document, or null if the is no scope. エラー / 例外 Throws MongoDB\Driver\Exception\InvalidArgumentException on ar ... gument parsing errors. 例 例1 MongoDB\BSON\Javascript::getScope() example <?php $js = new MongoDB\BSON\Javascript ( 'function foo(bar) { return bar; }' ); var_dump ( $js -> get ... Scope ()); $js = new MongoDB\BSON\Javascript ( 'function foo() { return foo; }' , [ 'foo' => 42 ]); var_dump ( $js -> getScope ()); ?> 上の例の出力は以下となります。 N ...
-
https://man.mtool.work/php/8.3/mongodb-bson-javascript.getscope.html
- MongoDB\BSON\Javascript::getCode — Returns the Javascript's code | PHP 8.3 9858
- MongoDB\BSON\Javascript::getCode (mongodb >=1.2.0) MongoDB\BSON\Javascript::getCode — Returns the Javascript's code 説明 final public function MongoDB\BSON\Javascript::getCode (): string パラメータ この関数にはパラメータはありません。 戻り値
... Returns the Javascript's code. エラー / 例外 Throws MongoDB\Driver\Exception\InvalidArgumentException on argument parsing errors. 例 例1 MongoDB\ ... BSON\Javascript::getCode() example <?php $js = new MongoDB\BSON\Javascript ( 'function foo(bar) { return bar; }' ); var_dump ( $js -> getC ...
-
https://man.mtool.work/php/8.3/mongodb-bson-javascript.getcode.html
- fdf_add_doc_javascript — FDF ドキュメントに javascript コードを追加する | PHP 8... 9175
- fdf_add_doc_javascript (PHP 4 >= 4.3.0, PHP 5 < 5.3.0, PECL fdf SVN) fdf_add_doc_javascript — FDF ドキュメントに javascript コードを追加する 説明 function fdf_add_doc_javascript ( resource $fdf_document , string $script_name , string $scrip
... 行は、できるだけ '\r' を使用するようにしてください。 戻り値 成功した場合に true を、失敗した場合に false を返します。 例 例1 JavaScript コードを FDF に追加する <?php $fdf = fdf_create (); fdf_add_doc_javascript ( $fdf , "PlusOne" , "function PlusOne(x)\r{\r ... return x+1;\r}\r" ); fdf_save ( $fdf ); ?> これは、以下のような FDF を出力します。 %FDF-1.2 %âãÏÓ 1 0 obj << /FDF << /JavaScript << /Doc [ (PlusOne)(function PlusOne\(x\)\r{\r return x+1;\r}\r)] >> >> >> endobj trailer << /Root 1 0 R >> %%EOF 他のマニ ... ュアルの関連ページ Linux JM script(1) Linux JM scriptlive(1) Linux JM sed(1) Django javascript Vim usr_46 Django 1.2.1 ...
-
https://man.mtool.work/php/8.3/function.fdf-add-doc-javascript.html
- V8 JavaScript Engine 統合 | PHP 8.3 8934
- V8 JavaScript Engine 統合 はじめに この拡張モジュールは、 » V8 JavaScript Engine を PHP に組み込みます。 インストール/設定 要件 インストール手順 実行時設定 例 V8Js — V8Js クラス V8Js::__construct — 新しい V8Js オブジェクトを作成する V8Js::e
... xecuteString — 文字列を JavaScript のコードとして実行する V8Js::getExtensions — 登録された拡張の配列を返す V8Js::getPendingException — キャッチされなかった J ... avaScript 例外の中で未処理のものを返す V8Js::registerExtension — V8Js で使う JavaScript の拡張を登録する V8JsException — V8JsException クラス V8JsException::getJsFileName — getJsFileName V8JsException::getJsLin ... 連ページ Docker リモート API クライアント・ライブラリ Docker Engine チュートリアル Docker Docker Engine ユーザガイド Django javascript Django index ...
-
https://man.mtool.work/php/8.3/book.v8js.html
- fdf_set_javascript_action — フィールドの javascript アクションを設定する | PHP ... 8820
- fdf_set_javascript_action (PHP 4 >= 4.0.2, PHP 5 < 5.3.0, PECL fdf SVN) fdf_set_javascript_action — フィールドの javascript アクションを設定する 説明 function fdf_set_javascript_action ( resource $fdf_document , string $fieldname , int $tri
... gger , string $script ): bool 指定したフィールドの javascript アクションを設定します。 パラメータ fdf_document fdf_create() 、 fdf_open() あるいは fdf_open_string() が返す FDF ドキュメ ... ションを設定する 他のマニュアルの関連ページ Linux JM script(1) Linux JM ssignal(3) Linux JM gsignal(3) Django actions Django javascript Docker アプリケーションに CI/CD を設定 ...
-
https://man.mtool.work/php/8.3/function.fdf-set-javascript-action.html