Changes

Jump to navigation Jump to search
44 bytes added ,  15:53, 17 January 2016
no edit summary
<p>In the standard mode of the [[Language BindingsClients]], 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 class="brush:php">
<?php
* Documentation: http://basex.org/api
*
* (C) BaseX Team 2005-1115, ISC BSD License
*/
include("BaseXClient.php");
?>
</pre>
[[Category:Developer]]
[[Category:Server]]
[[Category:Bindings]]
Bureaucrats, editor, reviewer, Administrators
13,550

edits

Navigation menu