#1
  1. No Profile Picture
    Registered User
    Devshed Newbie (0 - 499 posts)

    Join Date
    Oct 2013
    Location
    India
    Posts
    3
    Rep Power
    0

    How to add custom chat box In PHP


    Hello Friends,

    I am new in PHP and i want to know that how to add custom chat box in core PHP
  2. #2
  3. No Profile Picture
    Contributing User
    Devshed Frequenter (2500 - 2999 posts)

    Join Date
    Dec 2004
    Posts
    2,985
    Rep Power
    375
    look at a plugin/library that already does it. GOOGLE is your friend.. or should I do the google for you
  4. #3
  5. No Profile Picture
    Permanently Banned
    Devshed Newbie (0 - 499 posts)

    Join Date
    Oct 2013
    Posts
    6
    Rep Power
    0
    Check this code !!

    Anyway, onto your question. When you go to a new page, you're reloading your include "pathytomychat.php";

    if(isset($_SESSION['window_open']) && $_SESSION['window_open'] == 'yes') {
    openChatWindow();
    }

    function openChatWindow() {
    $_SESSION['window_open'] = 'yes';
    //the rest of the code that actually opens the window
    }

IMN logo majestic logo threadwatch logo seochat tools logo