Summary of new features (from README)
PDO driver for ns_db --------------------------------------------- This module implemnts internal PDO driver which uses the same ns_db handles and pools as the rest of Naviserver. To allocate DB handle use: $db = new PDO("naviserver:poolname"); where naviserver is PDO driver name and poolname is any pool defined in nsd.tcl. After that is works the same way as other PHP PDO drivers. The limitations are: - all values are strings - no native bind parameters, it uses PHP/PDO bind emulation New native PHP functions ----------------------------------------- ns_header name Returns HTTP header ns_eval(Tcl_script); Evaluate Tcl code from PHP script and return result as string ns_log(severity, string); Put string in the server log, severity is one of 'Notice', 'Warning', 'Error', 'Debug', 'Fatal' ns_info(name); Returns information, name can be one of: address, boottime, builddate, threads, config, home, hostname, locks, log, major, minor, name, nsd, pageroot, patchlevel, pid, platform, tag, uptime, version, winnt ns_conn(name); Returns info about current connection, name can be one of: authpassword, authuser, close, content, contentlength, copy, driver, encoding, flags, host, id, isconnected, location, method, peeraddr, peerport, port, protocol, query, request, server, sock, start, status, url, urlc, urlencoding, urlv, version, ns_headers(); Returns input headrs as an array ns_outputheaders(); Returns output headers as an array ns_returnredirect(url); Performs HTTP redirection ns_returndata(status, type, data); ns_returnfile(status, type, file); Return data or file contents, status is HTTP status like 200, type is content type like text/html ns_queryexists name Returns 1 if query parameter exists in the request ns_queryget name Returns value of the query parameter ns_querygetall Returns all query parameters as an array ns_nsvget(array, key); ns_nsvset(array, key, value); ns_nsvincr(array, key, count); ns_nsvappend(array, key, value); ns_nsvexists(array, key) ns_nsv_unset(array, key); Interface to NSV arrays of the Naviserver, array is name of the array, all functions except last 2 will create array if it does not exists. Values in NSV arrays can be shared with Tcl and other connections. -- Vlad Seryakov [EMAIL PROTECTED] http://www.crystalballinc.com/vlad/ ------------------------------------------------------------------------- This SF.Net email is sponsored by the Moblin Your Move Developer's challenge Build the coolest Linux based applications with Moblin SDK & win great prizes Grand prize is a trip for two to an Open Source event anywhere in the world http://moblin-contest.org/redirect.php?banner_id=100&url=/ _______________________________________________ naviserver-devel mailing list naviserver-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/naviserver-devel