« PHP 8.3 Manual トップ
著作権 »
per page, with , order by , clip by
Results of 1 - 10 of about 51 for executeCommand (0.002 sec.)
Execute a database command 12319
« MongoDB\Driver\Manager::executeBulkWriteCommand MongoDB\Driver\Manager::executeQuery » PHP Manual MongoDB\Driver\Manager Execute a database command 検索 MongoDB\Driver\Manager::executeCommand (mongodb >=1.0.0) MongoDB\Driver\Manager::executeCommand ... uteCommand — Execute a database command 説明 final public function MongoDB\Driver\Manager::executeCommand ( string $db , MongoDB\Driver\Command $command , ? array $options = null ): MongoDB\Driver\Cursor Selects a server accordi ... rds compatibility, this parameter will still accept a MongoDB\Driver\ReadPreference object. 例 例1 MongoDB\Driver\Manager::executeCommand() with a command returning a single result document <?php $manager = new MongoDB\Driver\Manager ( 'mongodb://localhost:270 ... 17' ); $command = new MongoDB\Driver\Command ([ 'ping' => 1 ]); try { $cursor = $manager -> executeCommand ( 'admin' , $command ); } catch( MongoDB\Driver\Exception $e ) { echo $e -> getMessage (), "\n" ; exit; } /* The ping comm ...
https://man.mtool.work/php/8.3/mongodb-driver-manager.executecommand.html
Execute a database command 12214
« MongoDB\Driver\Manager::executeBulkWriteCommand MongoDB\Driver\Manager::executeQuery » PHP Manual MongoDB\Driver\Manager Execute a database command 検索 MongoDB\Driver\Manager::executeCommand (mongodb >=1.0.0) MongoDB\Driver\Manager::executeCommand ... uteCommand — Execute a database command 説明 final public function MongoDB\Driver\Manager::executeCommand ( string $db , MongoDB\Driver\Command $command , ? array $options = null ): MongoDB\Driver\Cursor Selects a server accordi ... rds compatibility, this parameter will still accept a MongoDB\Driver\ReadPreference object. 例 例1 MongoDB\Driver\Manager::executeCommand() with a command returning a single result document <?php $manager = new MongoDB\Driver\Manager ( 'mongodb://localhost:270 ... 17' ); $command = new MongoDB\Driver\Command ([ 'ping' => 1 ]); try { $cursor = $manager -> executeCommand ( 'admin' , $command ); } catch( MongoDB\Driver\Exception $e ) { echo $e -> getMessage (), "\n" ; exit; } /* The ping comm ...
https://man.mtool.work/php/8.3/mongodb-driver-manager.executecommand.html
Create a new Cursor (not used) 10011
« MongoDB\Driver\Cursor MongoDB\Driver\Cursor::current » PHP Manual MongoDB\Driver\Cursor Create a new Cursor (not used) 検索 MongoDB\Driver\Cursor::__construct (mongodb >=1.0.0) MongoDB\Driver\Cursor::__construct — Create a new Cursor (not ... or query and cannot be constructed directly. パラメータ この関数にはパラメータはありません。 参考 MongoDB\Driver\Manager::executeCommand() - Execute a database command MongoDB\Driver\Manager::executeQuery() - Execute a database query MongoDB\Driver\Server::ex ... s server 関連キーワード: MongoDB Driver Cursor Execute database Create new used construct command query パラメータ Manager executeCommand executeQuery Server server Search current mongodb ...
https://man.mtool.work/php/8.3/mongodb-driver-cursor.construct.html
Create a new Cursor (not used) 10011
« MongoDB\Driver\Cursor MongoDB\Driver\Cursor::current » PHP Manual MongoDB\Driver\Cursor Create a new Cursor (not used) 検索 MongoDB\Driver\Cursor::__construct (mongodb >=1.0.0) MongoDB\Driver\Cursor::__construct — Create a new Cursor (not ... or query and cannot be constructed directly. パラメータ この関数にはパラメータはありません。 参考 MongoDB\Driver\Manager::executeCommand() - Execute a database command MongoDB\Driver\Manager::executeQuery() - Execute a database query MongoDB\Driver\Server::ex ... se query on this server 関連キーワード: MongoDB Driver Cursor Execute database Create used construct command query Manager executeCommand executeQuery Server server current mongodb final private objects returned executed cannot constructed directly ...
https://man.mtool.work/php/8.3/mongodb-driver-cursor.construct.html
Execute a database command on this server 9801
« MongoDB\Driver\Server::executeBulkWriteCommand MongoDB\Driver\Server::executeQuery » PHP Manual MongoDB\Driver\Server Execute a database command on this server 検索 MongoDB\Driver\Server::executeCommand (mongodb >=1.0.0) MongoDB\Driver\Se ... rver::executeCommand — Execute a database command on this server 説明 final public function MongoDB\Driver\Server::executeCommand ( string $db ... ngoDB\Driver\Server::executeWriteCommand() - Execute a database command that writes on this server MongoDB\Driver\Manager::executeCommand() - Execute a database command 関連キーワード: MongoDB Driver command server database Server operation options option Exce ... ption Execute session write Throws mongodb transaction read used InvalidArgumentException executeCommand ...
https://man.mtool.work/php/8.3/mongodb-driver-server.executecommand.html
Execute a database command on this server 9801
« MongoDB\Driver\Server::executeBulkWriteCommand MongoDB\Driver\Server::executeQuery » PHP Manual MongoDB\Driver\Server Execute a database command on this server 検索 MongoDB\Driver\Server::executeCommand (mongodb >=1.0.0) MongoDB\Driver\Se ... rver::executeCommand — Execute a database command on this server 説明 final public function MongoDB\Driver\Server::executeCommand ( string $db ... ngoDB\Driver\Server::executeWriteCommand() - Execute a database command that writes on this server MongoDB\Driver\Manager::executeCommand() - Execute a database command 関連キーワード: MongoDB Driver command server database Server operation options option Exce ... ption Execute session write Throws mongodb transaction read used InvalidArgumentException executeCommand readConcern writeConcern concern ReadPreference Command ...
https://man.mtool.work/php/8.3/mongodb-driver-server.executecommand.html
Create a new Command 9591
« MongoDB\Driver\Command MongoDB\Driver\Query » PHP Manual MongoDB\Driver\Command Create a new Command 検索 MongoDB\Driver\Command::__construct (mongodb >=1.0.0) MongoDB\Driver\Command::__construct — Create a new Command 説明 final public f ... n immutable value object that represents a database command. The command may then be executed with MongoDB\Driver\Manager::executeCommand() . The complete command document, which includes the command name and its options, should be expressed in the document pa ... ngodb://localhost:27017" ); $command = new MongoDB\Driver\Command (array( "buildinfo" => 1 )); try { $cursor = $manager -> executeCommand ( "admin" , $command ); $response = $cursor -> toArray ()[ 0 ]; } catch( MongoDB\Driver\Exception $e ) { echo $e -> getMes ... Driver\Command ( array( "distinct" => "beer" , "key" => "beer_name" , "maxTimeMS" => 10 , ) ); try { $cursor = $manager -> executeCommand ( "beerdb" , $command ); $response = $cursor -> toArray ()[ 0 ]; } catch( MongoDB\Driver\Exception\Exception $e ) { echo $ ...
https://man.mtool.work/php/8.3/mongodb-driver-command.construct.html
Create a new Command 9591
« MongoDB\Driver\Command MongoDB\Driver\Query » PHP Manual MongoDB\Driver\Command Create a new Command 検索 MongoDB\Driver\Command::__construct (mongodb >=1.0.0) MongoDB\Driver\Command::__construct — Create a new Command 説明 final public f ... n immutable value object that represents a database command. The command may then be executed with MongoDB\Driver\Manager::executeCommand() . The complete command document, which includes the command name and its options, should be expressed in the document pa ... ngodb://localhost:27017" ); $command = new MongoDB\Driver\Command (array( "buildinfo" => 1 )); try { $cursor = $manager -> executeCommand ( "admin" , $command ); $response = $cursor -> toArray ()[ 0 ]; } catch( MongoDB\Driver\Exception $e ) { echo $e -> getMes ... Driver\Command ( array( "distinct" => "beer" , "key" => "beer_name" , "maxTimeMS" => 10 , ) ); try { $cursor = $manager -> executeCommand ( "beerdb" , $command ); $response = $cursor -> toArray ()[ 0 ]; } catch( MongoDB\Driver\Exception\Exception $e ) { echo $ ...
https://man.mtool.work/php/8.3/mongodb-driver-command.construct.html
Script Injection Attacks 9486
« Request Injection Attacks MongoDB\Driver » PHP Manual Security Script Injection Attacks 検索 Script Injection Attacks If you are using JavaScript, make sure that any variables that cross the PHP- to-JavaScript boundary are passed in the s ... rname = $_GET [ 'field' ]; $cmd = new \MongoDB\Driver\Command ( [ 'eval' => "print('Hello, $username !');" ] ); $r = $m -> executeCommand ( 'dramio' , $cmd ); ?> However, what if a malicious user passes in some JavaScript? <?php $m = new MongoDB\Driver\Manager ... db.users.drop(); print('" $cmd = new \MongoDB\Driver\Command ( [ 'eval' => "print('Hello, $username !');" ] ); $r = $m -> executeCommand ( 'dramio' , $cmd ); ?> Now MongoDB executes the JavaScript string "print('Hello, '); db.users.drop(); print('!');" . This ... ommand ( [ 'eval' => "function greet(username) { print('Hello, ' + username + '!'); }" , 'args' => $args , ] ); $r = $m -> executeCommand ( 'dramio' , $cmd ); ?> This adds an argument to the JavaScript scope, which gets used as argument for the greet function. ...
https://man.mtool.work/php/8.3/mongodb.security.script_injection.html
Returns the result document for the failed command 8752
« MongoDB\Driver\Exception\CommandException MongoDB\Driver\Exception\ConnectionException » PHP Manual MongoDB\Driver\Exception\CommandException Returns the result document for the failed command 検索 MongoDB\Driver\Exception\CommandExceptio ... メータ この関数にはパラメータはありません。 戻り値 The result document for the failed command. 参考 MongoDB\Driver\Manager::executeCommand() - Execute a database command 関連キーワード: MongoDB Driver command Exception document failed CommandException getResult ... Document ConnectionException mongodb final 参考 Manager executeCommand Execute database ...
https://man.mtool.work/php/8.3/mongodb-driver-commandexception.getresultdocument...
PREV 1 2 3 4 5 6 NEXT