Tracking Forums, Newsgroups, Maling Lists
Home Scripts Tutorials Tracker Forums
 
  HOME    TRACKER    PHP




Chat Room Needed


I'm in a need of a chatroom for my website, and I'm assuming PHP would be the best option. There is one feature I must have:

I need to be able to assign a user mod powers so any time he logs in, he'll have that power. I also would like for his text to show up in a different color than everyone else's.




View Complete Forum Thread with Replies

See Related Forum Messages: Follow the Links Below to View Complete Thread
Small Bug With My Chat Room.............................................. .....
Take a look at PHP chat with no login screen!

Try changing your alias from guest, and click the SEND button, it works.
But change it and then press ENTER and the input frame dissapears .

This is the main parts of the message and alias text boxes, they are in different
forms, how can I stop it going blank when people hit enter?

************************************************** **

<FORM NAME="MsgForm" ACTION="<?php echo($action); ?>" METHOD="POST" AUTOCOMPLETE="OFF" TARGET="<?php echo($target); ?>"
onSubmit="return window.parent.validateSubmission();">

<INPUT TYPE="text" NAME="M" SIZE="45" taborder=1 tabindex=1 MAXLENGTH="299" VALUE="<?php
echo(htmlspecialchars(stripslashes($ValM))); ?>">

<INPUT TYPE="hidden" NAME="sent" VALUE="0">
<INPUT TYPE="submit" NAME="sendForm" VALUE="<?php echo(L_OK); ?>">

</FORM>

&nbsp;

<form name="aliasform">

<INPUT TYPE="text" NAME="ZU" SIZE="5" MAXLENGTH="29" VALUE="<?php echo(htmlspecialchars(stripslashes(urlencode($U))) ); ?>">

</form>

************************************************** **

Can I detect if they hit Enter while in the alias text box, then set focus somewhere?
Its like it submits a blank form and goes nowhere. is there a setting I can use on
<form name="aliasform"> to stop that?

PHP Chat Room Server
I'm looking for a chatroom server - one that has an API, so I can use a
non-web GUI. All searches on Google have yielded the wrong stuff.

Multiple User Chat Room
Can anybody suggest me where I can get code for multiple user chat room in PHP3 giving full privacy for each user?

Simple Room Booking App?
I'm lazily looking for a simple app that will let us match up
teachers, classes, and instructors, preferably with a php/mysql
infrastructure so that it's accessible via the web. If there is a
single good repository of free scripts that would be useful as well.

Checking Room Availability For Hotel Booking System
I was wondering if anyone could help me with a problem I'm having.
I've been using Dreamweaver to create a hotel booking system for a
friend of mine, using MySQL (version 4.0.21) and PHP 5. The bit I'm
struggling with is checking the Room Availability based on dates that
are typed into a textfield and then returning a list of the available
rooms on the next page.

The three tables involved in this function are:

CREATE TABLE `room` (
Room_Number tinyint(1) UNSIGNED NOT NULL,
Price_Double_per_Night decimal(5,2) NOT NULL,
Price_Twin_per_Night decimal(5,2) NOT NULL,
Price_Single_per_Night decimal(5,2) NOT NULL,
Price_Double_per_Week decimal(5,2) NOT NULL,
Price_Twin_per_Week decimal(5,2) NOT NULL,
Price_Single_per_Week decimal(5,2) NOT NULL,
PRIMARY KEY(`Room_Number`),
)
TYPE=InnoDB
ROW_FORMAT=fixed;

CREATE TABLE `room_booking_link_entity` (
Room_Number tinyint(1) UNSIGNED NOT NULL,
Room_Booking_ID int(11) NOT NULL,
Single_Double_Twin enum('Single','Double','Twin') NOT NULL,
PRIMARY KEY(`Room_Number`, `Room_Booking_ID`),
INDEX `Room_Number`(`Room_Number`),
INDEX `Room_Booking_ID`(`Room_Booking_ID`),
FOREIGN KEY `Reference_14`(`Room_Number`)
REFERENCES `room`(`Room_Number`)
ON DELETE NO ACTION
ON UPDATE NO ACTION,
FOREIGN KEY `Reference_85`(`Room_Booking_ID`)
REFERENCES `room_booking`(`Room_Booking_ID`)
ON DELETE NO ACTION
ON UPDATE NO ACTION
)
TYPE=InnoDB
ROW_FORMAT=fixed;

CREATE TABLE `room_booking` (
Room_Booking_ID int(11) NOT NULL AUTO_INCREMENT,
Customer_ID int(11) NOT NULL,
Bill_ID int(11) NOT NULL,
Date_of_Arrival date NOT NULL,
Date_of_Departure date NOT NULL,
Number_of_Nights tinyint(3) NOT NULL,
Date_Booking_Made date,
Status_of_Booking enum('Booked','Arrived','Departed') NOT NULL,
Total_Cost decimal(7,2) NOT NULL,
PRIMARY KEY(`Room_Booking_ID`),
INDEX `Room_Booking_ID`(`Room_Booking_ID`),
INDEX `Customer_ID`(`Customer_ID`),
INDEX `Bill_ID`(`Bill_ID`),
INDEX `Date_of_Arrival`(`Date_of_Arrival`),
INDEX `Date_of_Departure`(`Date_of_Departure`),
INDEX `Status_of_Booking`(`Status_of_Booking`),
FOREIGN KEY `Reference_03`(`Customer_ID`)
REFERENCES `customer`(`Customer_ID`)
ON DELETE NO ACTION
ON UPDATE NO ACTION,
FOREIGN KEY `Reference_14`(`Bill_ID`)
REFERENCES `bill`(`Bill_ID`)
ON DELETE NO ACTION
ON UPDATE NO ACTION
)
TYPE=InnoDB
ROW_FORMAT=fixed;

I've just discovered that MySQL 4.0.21 does not support subqueries.
I'm basically stuck with this version of MySQL. I think I've got
round the subquery problem by using a multi query option as follows:

1.Create a temptable that will store all of the room numbers that
have bookings for the particular dates requested as follows:

SELECT DISTINCT a.room_number INTO temptable
FROM booking_link_entity AS a INNER JOIN room_booking AS b
WHERE b.departure_date >$_POST[‘ARRIVAL'] And b.arrival_date <
$_POST[‘DEPART'];

2.Left join this with the room table and pull out rows with no match

SELECT a.room_number, b.room_number
FROM room AS a LEFT JOIN temptable AS b ON a.room_number=b.room_number
WHERE b.room_number IS NULL;

3.Delete temp table

I've tried doing this in Dreamweaver, but to no avail. I have a
feeling it is too complex for Dreamweaver.

My php knowledge is very basic and was wondering if anyone could give
me some pointers as how to do this in PHP?.

PHP Chat
I'm searching for a CHAT written in PHP3. If you know where I can find such things.




Web Chat?
I want to create chat window for my web site.How can i solve this, a java based code should also be ok!

IRC Chat
Are there any live chat channels available out there for PHP related questions?

Php Chat
i have made a chat script that uses META REFRESHES to update from a flat txt file. this is very inefficient for both server and user. the problem is i can't think of any other way to do it.

one way i can think of is to open sockets so that a server can look at the file and see if it has been changed. of course, i have no idea where to start, so instead i built a really bad script that was worse on the client (i.e. 100% CPU usage) but not so bad on the server. any ideas? PHP Code:

Php Chat
i want the php chat scripts.i make some searches but find a big one, i need a simple one.i need public  chat system. the admin will type the message and press send button,the users who are logged at that time should see the admin message and give reply to him.all users can chat with admin.the messages will be stored in database.no private rooms.just chat messages only.

ISO PHP Chat With Games
I'm looking for a F/OSS chat app with included games, ideally chess,
checkers/draughts, etc. Thanks for any sightings.

API For Yahoo Chat?
How to get the contact list of a particular user from Yahoo chat from an external application? Is there any API available for this purpose?

Chat Program
Is it possible to create a chat program by using PHP. Or is it only possible by JAVA?

Realtime Chat
i want to code a realtime chat. the server side is done (php), what i need now is the best way to refresh the page/frame containing the messages periodically (t < 500 ms).
i think i could do this with a little bit of javascript. does anybody have some good code (normal mouse cursor in browser etc), or is there a better way?

PHP Stream (chat)
how the PHP stream chats works? There is
lot of "normal" chat where the page will be updated regurarly but I am
looking for php based chat where there is no update every 5 seconds...

Live Chat
I found that some of these pre-made help desks also have a live chat function that allows users to seek help via live chat, similar to aim. (Once you log into the help desk at php live, click on the "launch request monitor window" to get a better understanding of what I am talking about.)

Unfortunately, I showed this to my boss and he liked that idea. Why unfortunate? I have no idea where to start on this one! I have done several web apps with php and mysql, so I would say I have a fair grasp and understanding, but this one has me stumped. Has anyone done something similar to this or have an idea in which direction that I need to be going?

Chat With You Friends
<?php
// Get the names and values for vars sent by index.lib.php3
if (isset($HTTP_GET_VARS))
{
while(list($name,$value) = each($HTTP_GET_VARS))
{
$$name = $value;
};
};

// Get the names and values for post vars
if (isset($HTTP_POST_VARS))
{
while(list($name,$value) = each($HTTP_POST_VARS))
{
$$name = $value;
};
};

// Fix some security issues
if ((empty($From) || trim($From) == '')
|| (empty($U) || trim($U) == '')
|| (empty($R) || trim($R) == '')
|| (empty($Ver) || empty($L) || empty($N))
|| (!isset($T) || !isset($D) || !isset($O) || !isset($ST) || !isset($NT))
|| !is_dir('./localization/'.$L))
{
exit();
}

require("./config/config.lib.php3");
require("./localization/".$L."/localized.chat.php3");
require("./lib/release.lib.php3");
require("./lib/database/".C_DB_TYPE.".lib.php3");
require("./lib/clean.lib.php3");

header("Content-Type: text/html; charset=${Charset}");

// avoid server configuration for magic quotes
set_magic_quotes_runtime(0);

$U = urldecode($U);
$R = urldecode($R);

// Translate to html special characters, and entities if message was sent with a latin 1 charset
$Latin1 = ($Charset == "iso-8859-1");
function special_char($str,$lang)
{
return addslashes($lang ? htmlentities(stripslashes($str)) : htmlspecialchars(stripslashes($str)));
};

$DbLink = new DB;

// ** Updates user info in connected users tables and fix some security issues **
$DbLink->query("SELECT room, status, ip FROM ".C_USR_TBL." WHERE username = '$U' LIMIT 1");
if ($DbLink->num_rows() != 0)
{
list($room, $status, $knownIp) = $DbLink->next_record();
$DbLink->clean_results();
$kicked = 0;
// Security issue
include("./lib/get_IP.lib.php3");
if ($knownIp != $IP)
{
$kicked = 5;
}

Chat Script
where I can get a chat script to use on a dating site, where members can login and click on the member to start chatting something to be one on one not a general chat.
match.com has a nice messenger type one, however not sure where I can get that as I think it is custom built. However anything suitable to serve the purpose will do.

Need Urgent Help Regarding Web Cam Chat In Php
Anybody have idea or done before web cam chat in php, what are the things needed for that..

Chat Scrolling
I have need to know how when a person posts a message to a chat room window how to get the chat room window (iframe) to scroll when that message is posted instead of the person having to scroll the window themselves to see the newly posted messages. Any ideas?

Chat Script
im new here and i would like to ask how can i make a chat script that will have "one way communication". Its for a radio station. The radio producer will be able to see the listeners messages but they will not to be able to see their.

But listener will see producers message. I dont need nick names and other stuff, i want simple things a chat box, and and a text box so can write.

A Chat Script
I've made an attempt at a chat script, but it isn't performing exactly how I want. Yes, I am a relative newbie to PHP. I've spent hours on Hot Scripts looking for something, but nothing I found meets what I need. Code:

Chat And Instant Mesenger
Can we build chat and instant messenger using php and mySQL ?
it is like yahoo messenger that will view all the user (of course they have to register first).. whether they are on line or not and can keep the offline messages.

Chat-like Non-buffered Output
I would to like to output html data like in a HTML chat - that means line by line. As soon as I send a line to the client it shall appear directly (continuously), not when the whole document is completed. I need that for some sort of progress indication.

So how can I force the browser to output contents before the document has been completely transmitted - like in a HTML chat? Do I have to send some special HTTP header(s)?

Chat And Instant Message
1. Does anyone know of any good chat software? I was looking for something that looks similar to digichat chatrooms and allows setup of multiple rooms.

2. How would I implement instant messaging on my website. You have probably never been on blackplanet or collegeclub before. But I want users to be able to IM each other on the website when they log-in to the site. It is built-in. I was hoping to use something plug-in based, maybe something similar to AIM Express, so they don't have to download the client when they log on from different computers. I think MSN Gaming zone used to have a built-in IM before MS started making everything a part of passport.

Real Time Chat
There's anyone out there that can give me a light on real time chat using sockets. I've seen some using push technics but they all hang up after an elapsed amount of time.

Live Chat With Sockets
I want to make a *real* chat app in php/flash, preferably from first principles so that I can learn what this stuff is all about....so I need to get started with sockets...(flash has an xmlsocket object that will send and receive data on the client side) I've read up on the methods in the manual but would really appreciate a kick-start!

I've searched on this topic and there are a few posts but the responses range from:
. chat in php can only be faked with a db and refreshing the page - Not true!
. php is no good at this, forget it, use java or perl anyone know where I can find an example, got any advice (other than forget it !)?

PHP Chat Script Without MySQL
Is there PHP chat script *without* MySQL?

Demands: absolutely FREE (no adware, shareware etc.), No MySQL needed,
one permanent public chat, can make your own channels (public/private)
like IRC, several admins (one superadmin, me ;-D ), bad word filter,
user nick ban/ip ban/kick (temporary/permanent), small file sharing and
@time script ( http://www.swatch.com/internettime/home.php ) to upper
right corner. Environment: Windows 2000 Pro FIN + SP2 (finnish
versions), PHP 4.2.2 and Apache 2.0.46.

I have tried to search that kind of script from google found nothing.

Live Chat Via PHP And Gaim
Is there a way I can bring up an entirely PHP-based service on my
intranet and then connect to it with Gaim, such as building an AOL IM
service clone in PHP, or perhaps a Jabber service in PHP?

Secure Chat Environment
For my next project (hobby, not homework), I need to make / download /
adapt / buy a chat room. I want it to have the following features:

- username/password registration
- private messaging in separate windows

And most critically...

- absolutely nothng to do with sql (my host doesn't allow it unless I
pay silly money).

I have found a number of solutions using sql, but none without. Is there
a simple way to adapt these to use flat text files instead of sql?

In general, what would be the way to convert a sql-based php app into a
text file based one? What does an sql call look like, and what would teh
equivalent text file call be?

How To Make Chat Window
How to make chat window in php . I am naver make a chat window so I need help .
Please tell me best tutorial site and share your experience . how can I make the chat window.

Basic Chat Script
I am making a very basic chat Script that stores a users post into a text document, and then displays it. The trouble i am having is stopping people from posting php or html or something like that into their posts.

How do i get rid of any html code or anything like that in the post I am using a simple form for the users to post their comments.

Need Help About Adding Emotions In Web Chat Application
I need to add a functionality about adding emotions in php+Ajax based web chat application.

Setting Up An Online Chat System
I have been asked by my manager to look into the possiblily of setting
up an online chat system for the external website. We run an Apache
server with PHP (hence the reason Im posting here) so it would need to
run on that.

Basically, it will run on the website and its purpose will allow
members of the public to access the chat room and discuss current
topics with experts. Similar to a doctors interactive website where
patients can speak and get advice from their GP.

Anyway, Ive never set up anything like this before so dont really know
where to begin. The chat system may be something that we would need to
pay for but ideally it will have a professioanl appearance and be easy
to implement.

Php+flash Realtime Chat Using Php Sockets
I'm interested in knowing whether it's possible to write a realtime php+flash chat application. The chat would be like a room. u join and start typing and everyone recieves what you write.

If anyone here knows flash and php well, can you please advise whether the chat can be made using php sockets and flash xml sockets? If so, would this be the best solution cpu load-wise. And finally what other solutions are there (php+flash only).?

File Vs Database. Mini Chat Script
I'm just beggining to write some simple-small script which is gonna
work as a mini chat.
First aproach:

File: comments.xml

every time this file is accessed, I delete the first line (if number of
lines is > than x) and add one to the end :

<com>hello</com>
<com>hello, how are you</com>
<com>fine, thanks</com>

In client side, I just load this xml inside a div every "n" seconds,
using ajax

I'm wondering what's going to happen if two or more users try to acces
to the file at the same time, beacause I don't want to lock the file at
all...

Php Client / .Net Webservice / Chat Datatype Problem - Plz!
Problem in sending char format to the .net webservice from php.
description follows.

I've created a .net webservice.

..Net Webservice:

<WebMethod()> _
Public Function HelloChat(ByVal mychar As Char) As String
Return mychar & mychar
End Function

Php Client:

$parameters['mychar'] = "c";
$soap_proxy = $s->getProxy();
$result = $soap_proxy->HelloChat($parameters);
if (!$err = $soap_proxy->getError()){
echo($result["HelloChatResult"]);
}
else{
echo 'Error: ' . $err . "
";
}

When i execute above, i received following errors.

"Error: soap:Client: Server was unable to read request. --> There is an
error in XML document (1, 906). --> Input string was not in a correct
format. "

How to send char format data to the webservice from php. For
String, Numbers above code works well.

Whiteboard Or Chat Application By PHP And Flash, Is It Possibe And Feasible?
I know for this kind of scenario Java or Flash Application Server is
the best. But, in PHP 5, is there anything good for this kind of
issue, does anybody know?

Well, I know it can be done by, suppose writing data in database and
then reading data after a certain amount of time, but this is not at
all efficient way. While, in Java/Flash Communication Server, a
component can always run in server and trace the change in the shared
object. ANd any change is broadcasted to all according to the
requirements. But, I was wondering anything special in PHP 5 that
helps this kind?

Integrated Php Mods For Portal -webmail, Chat, Forum Etc
Looking to develop an online community portal and am interested to hear from those with integrated modules for: forums chat webmail instant messenger etc

the idea is that these modules would all share an integrated login to provide users with a single login to the site which would then grant access to all mods. Likewise will log out of all mods on logout. Will consider a suite in jsp, cfm or asp if not php.

Ajax Chat System - Active HTTP Connection?
I am trying to build an ajax chat system. Currently I have it so that
when you chat, you upload your message to the database, and each client
is polling that database to see if he/she has any new messages. The
problem with this is that I poll at 2 second intervals (since
connection is not active), and so its not as responsive as I'd like it
to be.

My question is, is an active HTTP connection possible? How did Meebo or
Gmail implement their ajax chat? Can someone point me to a better tool
for implementing an active-connection chat, rather than a poll-based
one?

Help Needed..
I am Ronny from Germany, so please excuse my English. Since early 2002 I am trying to solve th following problem:

I am trying to programm a meta search engine - which fetches the results of about 10 search engines. Now I solved the problem with fopen(), fread() etc. But it is to slow - and so my question is :

Is it possible to make several http requests at the same time in PHP or do you know a Perl Program where I can put in maybe 10 URL´s and the results where saved in an array which I can use in PHP???

NOW() Help Needed
I am putting data into a mysql database, the database tells me the time a user signed up, this is placed in the table using the now function but the date always shows as 2002/11/06 not how i would like it, i want it to view as 06/11/2002, i think it can be manipulated in many ways.

Also on manually updating a further table i have to place in a date manually, when i put the date in the fiels using phpmyadmin the date still looks like 2002/11/06, i try change the value but with no joy.

Help With Regexp Needed
Hello,

I'm coding a simple templating system to fit in to my simple CMS system. The way this will work is that the administrator of the CMS can edit the template (stored in a db), and insert 'snippets' into the template. A snippet is a piece of code (also stored in the db) which may have PHP code in it, which will then be eval()'d.

A simple example would be:

<html>
<head>
<title>[[title]]</title>
</head>
<body>
[[menu]]
[[content]]
</body>
</html>

The snippets here are [[title]], [[menu]] and [[content]]. This is fine as long as I know exactly which snippets will be in the template, but that's not always the case.

So what I want to do, is search through the string containing the template, find all the snippets and save these in an array.

My guess is that this'd be done with regular expressions, but I'm still very new at those, and have no idea how to do what I want.

Does anyone have an idea about how to do this?

Thanks!
Alex

PHP Developers Needed
hello,
My name is Joshua Abbott and I am project administrator of the AWHCP project on sourceforge.net. Our project is aiming to create an advanced web hosting control panel of 350 end user features (once final release) and a lot of security features in a packaged OS called extremeserv-linux @ extremeserv-linux.com . We desperately need PHP Developers to help in this endevour. So, if you are interested or want more information please email URL

Help Needed In Sending SMS With PHP
I want to know the process and the Implementation of sending text SMS to mobile phones with PHP. Is there any article regarding this? or any code example?

Nusoap & XML Help Needed
I am getting below result when accessing a web service.
Now how can I separate the values and assign them in variables for further use?

Help Needed With DB_DataObject
I have just adopted a PHP project and need some help understanding
DB_DataObject. I've looked around on the web and can't find a simple
explanation.

Basically, my MySQL database has no tables. I have a createTable.php
script which I believe is a standard script, it runs but tell me "NO
TABLES". There is a function in the script called _createTableList()
which is looking for tables not finding any (I don't really
understand why there should be pre-existing tables when the script is
supposed to be creating them...)

I have .ini files which seem to describe the schema, and classes which
correspond to the entries in the .ini file - but no SQL, and I do not
understand how to get the schema into the database. I believe the
environment is set up correctly for the script to find the .ini files.

I hope that was clear, and I hope somebody here can advise me - I'm sure
it's simple enough for somebody who knows what they're doing with
DB_DataObject!

Using PHP5 btw, if that matters.

Help Needed With Nntp
Im having trouble with a script trying to display newsgroups.
The script just hangs when trying to select a newsgroup (fget command)....

New Line Help Needed
I'm trying to insert a newline character into the string below for an
<INPUT TYPE="image" ALT= tag but when I hold the mouse over the image
I see the string but without a newline break in the string - how do I
get the line to break?


Copyright © 2005-08 www.BigResource.com, All rights reserved