• Lucid Dreaming - Dream Views




    Results 1 to 5 of 5
    1. #1
      ¯\_(ツ)_/¯ benzilla04's Avatar
      Join Date
      May 2012
      LD Count
      40-ish 1 WILD
      Gender
      Location
      London
      Posts
      488
      Likes
      326

      Cool My first Instant Messenger chat application :D

      Hey

      This is my first instant messenger app (PHP). Well, 4th. That is if you're including my attempts that failed misurably

      Here's the link
      Chat Applicaiton

      Project .zip:
      http://staff.passion4web.co.uk/ben/i...at/project.zip

      Note:
      It's not finished. I started it yesterday

      Could you guys leave some feedback? I'm 18 and ive been studying php for about a year and a half now

    2. #2
      khh
      khh is offline
      Remember Achievements:
      1000 Hall Points Veteran First Class
      khh's Avatar
      Join Date
      Jun 2009
      Gender
      Location
      Norway
      Posts
      2,482
      Likes
      1309
      Ah, chat rooms. I've implemented this in greater or lesser degrees four times, with http forms and http-refresh, with ajax and with websockets. It's a fun thing to do.

      This one looks pretty all right.

      A few comments:
      The php code:
      It's better, I think, to use isset to check if a value has been set rather than empty.
      The mysql_* interface has been depricated. That said, I think you should use mysql_real_escape_string rather than addslashes to escape content in mysql queries.
      It might be better to identify owners of rooms by sessions rather than IP as more than one computer can share the same (internet) IP

      The app:
      When you type out a message and hit enter, it should automatically delete the message you just wrote from the input field.
      April Ryan is my friend,
      Every sorrow she can mend.
      When i visit her dark realm,
      Does it simply overwhelm.

    3. #3
      ¯\_(ツ)_/¯ benzilla04's Avatar
      Join Date
      May 2012
      LD Count
      40-ish 1 WILD
      Gender
      Location
      London
      Posts
      488
      Likes
      326
      Thanks for the feedback

      I did have something that was meant to remove the message
      $("input:text[name=message]").val('');

      But that doesn't seem to do the job, i'll have a look a bit later on and fix it

      And "The mysql_* interface has been depricated"
      You you explain a ltitle more please?

    4. #4
      khh
      khh is offline
      Remember Achievements:
      1000 Hall Points Veteran First Class
      khh's Avatar
      Join Date
      Jun 2009
      Gender
      Location
      Norway
      Posts
      2,482
      Likes
      1309
      Quote Originally Posted by benzilla04 View Post
      And "The mysql_* interface has been depricated"
      You you explain a ltitle more please?
      It's not actually a problem, I just thought you should be aware. PHP: Choosing an API - Manual
      April Ryan is my friend,
      Every sorrow she can mend.
      When i visit her dark realm,
      Does it simply overwhelm.

    5. #5
      ¯\_(ツ)_/¯ benzilla04's Avatar
      Join Date
      May 2012
      LD Count
      40-ish 1 WILD
      Gender
      Location
      London
      Posts
      488
      Likes
      326
      Oh cool, thanks man

    Similar Threads

    1. Messenger
      By Tyler in forum The Lounge
      Replies: 0
      Last Post: 08-27-2009, 02:50 AM
    2. MSN messenger...
      By bundabergsangel in forum Introduction Zone
      Replies: 1
      Last Post: 04-15-2006, 05:21 PM
    3. MSN Messenger
      By kraid in forum The Lounge
      Replies: 8
      Last Post: 04-27-2005, 04:18 PM
    4. I got MSN messenger yay
      By wasup in forum The Lounge
      Replies: 4
      Last Post: 04-25-2005, 05:39 AM

    Bookmarks

    Posting Permissions

    • You may not post new threads
    • You may not post replies
    • You may not post attachments
    • You may not edit your posts
    •