Realtime AJAX Chat by PHP(Non-Comet)

PHP, AJAX, Comet

01:00:15, by admin Email , 41 words, 1858 views   Japanese (JP) del.icio.us

It's real time chat system from ordinary AJAX.
Backend system is use only php,
It's small, simple.
And there is no application server.

Enjoy It!

Sample Page


Source
RealTime Ajax Chat Connection Source
RealTime Ajax Chat View Source

PHP5.2.0 Release

PHP

10:04:08, by admin Email , 234 words, 2487 views   Japanese (JP) del.icio.us
PHP5.2.0 was Released.

The key features of PHP 5.2.0 include:
New memory manager for the Zend Engine with improved performance and a more accurate memory usage tracking.
Input filtering extension was added and enabled by default.
JSON extension was added and enabled by default.
ZIP extension for creating and editing zip files was introduced.
Hooks for tracking file upload progress were introduced.
Introduced E_RECOVERABLE_ERROR error mode.
Introduced DateTime and DateTimeZone objects with methods to manipulate date/time information.
Upgraded bundled SQLite, PCRE libraries.
Upgraded OpenSSL, MySQL and PostgreSQL client libraries for Windows installations.
Many performance improvements.
Over 200 bug fixes.


Security Enhancements and Fixes in PHP 5.2.0:
Made PostgreSQL escaping functions in PostgreSQL and PDO extension keep track of character set encoding whenever possible.
Added allow_url_include, set to Off by default to disallow use of URLs for include and require.
Disable realpath cache when open_basedir and safe_mode are being used.
Improved safe_mode enforcement for error_log() function.
Fixed a possible buffer overflow in the underlying code responsible for htmlspecialchars() and htmlentities() functions.
Added missing safe_mode and open_basedir checks for the cURL extension.
Fixed overflow is str_repeat() & wordwrap() functions on 64bit machines.
Fixed handling of long paths inside the tempnam() function.
Fixed safe_mode/open_basedir checks for session.save_path, allowing them to account for extra parameters.
Fixed ini setting overload in the ini_restore() function.

Server-sent Events(SSE) php samples

PHP, JavaScript, AJAX, Comet

19:08:36, by dozo Email , 158 words, 3984 views   Japanese (JP) del.icio.us
Comet is new Ajax and server pushing technology.
If it use then create system of Event Driven Web Application.
It is required Jetty, mod_pubsub, POE, Twisted, Nevow and other higher-level event-driven interface. and PHP isn't compatible.

I try to use Only PHP and create HTTP Streaming System.

* System
  • Web Server: Lighttpd
  • PHP: PHP5.6.1(CGI)



  • => Read more!

    RPM install for redhat enterprise linux 3

    PHP

    18:17:50, by admin Email , 36 words, 2159 views   Japanese (JP) del.icio.us
    I't notice for rpm install on redhat enterprise linux 3.


    install
    rpm -ivh ~~.rpm


    upgrade
    rpm -Uvh ~~.rpm


    list
    rpm -qa


    SRPM install
    rpmbuild --rebuild ~~.src.rpm
    rpm -ivh ~~.rpm


    delete
    rpm -e ~~.rpm



    => Read more!

    rdf2gsm:RDF to Google Sitemap xslt

    xslt, xml

    17:13:21, by dozo Email , 137 words, 1114 views   Japanese (JP) del.icio.us
    I think it is convenience if you use google sitemap for your blog site.
    Because Google Sitemap use very severe parser for rss (RDF, RSS2.0, atom).
    If we have a problem rss on your blogs then It output parser error.
    Google Sitemap Protocol is very simple. It is comprise url and date.
    I think there is no errors on your google sitemap.

    rss1.0
    rdf2gsm.xslt

    rss2.0
    rdf2gsm.xslt


    For example:
    PHP4
    (require xslt module)
    $xsl_filename = "rdf2gsm.xslt";
    $xml_filename = "rdffile.xml";

    $xmldoc = domxml_open_file( $xml_filename );
    $xsldoc = domxml_xslt_stylesheet_file ( $xsl_filename );
    $result = $xsldoc->process($xmldoc);
    print $result->dump_mem();

    PHP5

    $xsl_filename = "rdf2gsm.xslt";
    $xml_filename = "rdffile.xml";

    $doc = new DOMDocument();
    $xsl = new XSLTProcessor();

    $doc->load($xsl_filename);
    $xsl->importStyleSheet($doc);

    $doc->load($xml_filename);
    echo $xsl->transformToXML($doc);

    session save handlers

    PHP

    06:13:18, by dozo Email , 254 words, 3936 views   Japanese (JP) del.icio.us
    I listed up.

    (ノ・・)ン。。。。。。(((●コロコロッ

    I look for session save handler not file base it
    because I use webserver two or more and use them shared session.

    I found them.
    NFS
    session_mysql
    msession
    sesion_pgsql
    memcached



    => Read more!

    :: Next Page >>

    powered by b2evolution

    shinobi

    Neighbors
    Relative
    Favorites
    PR

    :: Next Page >>

    Archives
    スポンサー

    Latest bookmark
    Search

    Categories

    Who's Online?
    Misc
    Syndicate this blog XML

    Valid XHTML 1.0! Valid CSS! Valid RSS 2.0! Valid Atom 1.0!