Orphus system
Russian version
Add to Del.icio.us
English version
Digg It!

 dkLab | A Web-programmers laboratory 

Site map :: Project «Orphus» :: Constructor


Project "Constructor": useful code libraries

Set of useful PHP, Perl and JavaScript libraries developed and supported by the author.

dklab_vzenter: "vzctl enter" using a domain name part (for OpenVZ).   2009-09-10
PHP_Exceptionizer: converting E_NOTICE to Exception.   2009-01-21
HTTP_StaticMerger: Automatical "merging" of CSS and JS files for faster load.   2008-11-23
PGUnit: stored procedures unit-test framework for PostgreSQL 8.3.   2008-11-03
PostgreSQL 8.3 ALTER ENUM emulation: element addition/removal is possible.   2008-08-13
dkLab PostgreSQL patch: work with very huge integer arrays.   2008-05-20
dkLab Apache: virtual hosts with privileges of separated users.   2007-02-31
Sshbak: Simple unix-based remote backup system over SSH.   2006-06-01
DbSimple: simplest way to work with various RDBMs.   2006-03-03
JsHttpRequest 5: cross-browser AJAX + file uploading.   2006-07-29

JsHttpRequest: AJAX library with support of background file uploading and native PHP techniques compatible with Prototype JS

The library named JsHttpRequest is a powerfull tool to create AJAX-based websites in PHP. It has a great cross-browser compatibility (works even without an XMLHttpRequest support!), the simple and universal interface. The library supports AJAX-style background file uploading to a server without a page reloading and lots of other features.

JsHttpRequest is also fully compatible with AJAX functions of the popular library Prototype and could be used as its server part in PHP. Even so, all additional features of JsHttpRequest (cross-browser compatibility, file uploading support, work with national charsets etc.) are still available.
// JavaScript code:
JsHttpRequest.query(
  'your_ajax_script.php', {
    name: 'Dmitry',  
    file: $("my_upload_file")
  },
  function(result, debugMessages) {
    $("result").innerHTML = result.hello; 
    if (debugMessages) alert(debugMessages);
  }
);

// PHP code:
require_once "lib/JsHttpRequest.php";
new JsHttpRequest("windows-1251");
$GLOBALS['_RESULT']['hello'] 
  = "Hello, {$_REQUEST['name']}!";
echo "A debug message";
.

Most popular things on this site

JsHttpRequest: a library for AJAX-based scripts creation which has excellent cross-browser compatibility, unprecedented simple and universal. It also supports file uploading to the server without page reloads and has ability to sent the whole HTML form at once.

dkLab Apache is a patched Apache distibution for those who plan to use Apache web-server in Unix (Linux, FreeBSD etc.) to serve multiple separated sites working under different, fully separated and independent Unix users. It does not have some lacks of analogs, e.g.: does not require to install any OS kernel modules nor disable setuid; works correctly and intelligently with KeepAlive turned on and MaxRequestsPerChild > 1.

DbSimple: database abstraction library which provides an extremely laconic and handy interface for practical usage in PHP 4/5 scripts. Its usage is much easier than most of other popular abstraction libraries (like ADODB, PEAR DB, and PDO). "Query execution" and "result fetching" operations are joined thogether and complemented by powerful placeholder support (including list-based placeholders) and various fetching modes. The library supports a unique and very convenient method to build dynamic SQL queries (conditional macro-blocks).

What a...

This site is created by web-programmers and for web-programmers. We hope you find here a lot of useful information about site creation, scripting etc.






Dmitry Koterov, Dk lab. ©1999-2009
GZip
Add to Del.icio.us   Digg It!   Reddit