Changes

Jump to navigation Jump to search
81 bytes added ,  14:21, 27 February 2020
no edit summary
<p>In the standard modeof the [[Clients]], a database command can be
sent to the server using the <code>execute()</code> function
of the <code>Session</code>. This functions returns the whole
<p>The standard execution works as follows:</p>
#Create a new session instance with hostname, port, username and password. #Call the <code>execute()</code> function of the session with the [[Commands|database commands]] as argument. #Receive the result of a successfully executed command. As If an error occurs , an exception is thrown. # Optionally, call <code>info()</code> to get some process information#Continue using the client (back to 2.), or close the session.
==Example in [https://svn.uni-konstanz.de/dbis/basex/trunk/api/etc/php/ PHP]==
Taken from our [https://github.com/BaseXdb/basex-api/blob/master/src/main/php/Example.php repository]: <pre classsyntaxhighlight lang="brush:php">
<?php
/*
* Documentation: http://basex.org/api
*
* (C) BaseX Team 2005-1115, ISC BSD License
*/
include("BaseXClient.php");
}
?>
</presyntaxhighlight>[[Category:Developer]][[Category:Server]][[Category:Language Bindings]]
Bureaucrats, editor, reviewer, Administrators
13,550

edits

Navigation menu