Changes

Jump to navigation Jump to search
392 bytes added ,  13:28, 10 January 2011
==Example in [https://svn.uni-konstanz.de/dbis/basex/trunk/api/etc/php/ PHP]==
<pre class="brush:javaphp"><?php/* * This example shows how database commands can be executed. * Documentation: http:// Create a session object:basex.org/api *Session session = new Session * ("localhost", 1984, "admin"C) BaseX Team 2005-11, ISC License */include("adminBaseXClient.php");
try { // Run the command in question and print the textual result:initialize timerprint session.execute $start = microtime("info database"true);
// Close the create session: $session.= new Session("localhost", 1984, "admin", "admin"); // perform command and print returned string print $session->execute("xquery 1 to 10");  // close session $session->close();  // print time needed $time = (microtime(true) - $start) * 1000; print "\n$time ms\n"; } catch (Exception $e) { // print exception print $e->getMessage();}?>
</pre>
[[Category:Developer]]
[[Category:Server]]
[[Category:Language Bindings]]
bueraucrat, Bureaucrats, editor, reviewer, Administrators
907

edits

Navigation menu