• View our reviews on Hot Scripts
  • JS Tutorial

Recent Comments

Powered by Disqus

Back to articles

One of the best php chats - phpFreeChat

phpFreeChat is one of the best, because of it's customization options and easy integration with site authentication. You can download it here:

The version I used is 1.2 and it has automatic installation PHP file, which I recommend to use.

After installation to use this chat with your site authentication, all you have to do is to check whether user is logged in and pass username to  phpFreeChat instance:

    //checking if user is logged in
    require_once dirname(__FILE__)."/src/phpfreechat.class.php";
    $params = array();
    $params["title"] = "Your page name";
    // setup the intitial nickname
    $params["nick"] = $_SESSION['username'];
    $params["admins"] = array("admin"=>"password");
    // calculate a unique id for this chat
    $params["serverid"] = md5(__FILE__);
    $chat = new phpFreeChat( $params );
    //limiting chat width with div
    echo "<div style='width:500px;'>";
    echo "</div>";
    echo "<h3>You need to login to chat</h3>";


You may also be interested in:

Powered by

blog comments powered by Disqus