473,322 Members | 1,699 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,322 software developers and data experts.

Chat in AJAX

I wrote a chat width AJAX.
In my home wampserver apache it works just fine.

The problem starts when I trying to upload the chat in to my real
server. The chat prints error 403 in places which it should print the
http request. Like I don't have permissions in these pages.

there two things I should mark
1.I did let permissions to write and execute (chmod) my chat files.
2. My home server php version is 5.3 and my distant server php version
is 4.3 .

That is my home server link which works
http://85.250.226.88/chat/

That is my distant server link with the problem
http://kaze.co.il/chat_index.php

Most of the page is in hebrew.
The problem starts usually when trying to create a privet conversation
width one of the other users.

Thanks for everyone

May 28 '07 #1
4 2191
Gandalf wrote:
I wrote a chat width AJAX.
In my home wampserver apache it works just fine.
Then you need to specify what is different between your home and remote
servers.

(Not below, I mean figure all differences out yourself and work through
them.)
The problem starts when I trying to upload the chat in to my real
server. The chat prints error 403 in places which it should print the
http request. Like I don't have permissions in these pages.
That is specifically a server error. Which means Apache says you do not
have access to those pages (that are being requested).
there two things I should mark
1.I did let permissions to write and execute (chmod) my chat files.
2. My home server php version is 5.3 and my distant server php version
is 4.3 .
Neither of which is a JavaScript problem, but instead a file permissions
and PHP problem.
That is my home server link which works
http://85.250.226.88/chat/

That is my distant server link with the problem
http://kaze.co.il/chat_index.php
I attempted to see if there were any JavaScript errors. Yet you have
requests firing every 200ms or so. This made me shut the page
immediately. If there is truly a JavaScript problem, make the refresh
rate significantly lower, kind of like a debug mode and all requests
fire every five to ten seconds.
Most of the page is in hebrew.
The problem starts usually when trying to create a privet conversation
width one of the other users.
I do not speak Hebrew, nor understand it well enough to understand how
to initiate a private conversation.

I did however, create a nickname, join a chat "room" and then noticed
nothing I typed in got sent to the server.

I would have watched the requests that were made as well, but like I
said, firing them five to six times per second made it hard for me to
follow.

--
-Lost
Remove the extra words to reply by e-mail. Don't e-mail me. I am
kidding. No I am not.
May 29 '07 #2
rf

"Gandalf" <go******@gmail.comwrote in message
news:11**********************@q69g2000hsb.googlegr oups.com...
>I wrote a chat width AJAX.
Crikey, re-write it will you mate!

After -Lost made a response to your post I dived in for a look.

I let it run for exactly 20 seconds. During that time it used up 100KB of my
bandwidth. That is 5K of data per second. Outrageous.

I pay many dollars per month for my bandwidth, and my cap is 1GB per month.
Over that I pay twenty cents per megabyte.

<does sumsIf I were to have your page simply sitting on my browser for
just 10 minutes your page would use up my bandwidth allocation for the
entire day.

And that is just me. What about your end. Lets say you have 10 people
online. That is 50K per second out of your bandwidth. 175MB per hour. Four
and a quarter gigabytes per day. 123 gigabytes per month. I hope you have an
"unlimited" hosting plan :-)

--
Richard.
May 29 '07 #3
On May 29, 11:58 am, "rf" <r...@invalid.comwrote:
"Gandalf" <goldn...@gmail.comwrote in message

news:11**********************@q69g2000hsb.googlegr oups.com...
I wrote a chat width AJAX.

Crikey, re-write it will you mate!

After -Lost made a response to your post I dived in for a look.

I let it run for exactly 20 seconds. During that time it used up 100KB of my
bandwidth. That is 5K of data per second. Outrageous.

I pay many dollars per month for my bandwidth, and my cap is 1GB per month.
Over that I pay twenty cents per megabyte.

<does sumsIf I were to have your page simply sitting on my browser for
just 10 minutes your page would use up my bandwidth allocation for the
entire day.

And that is just me. What about your end. Lets say you have 10 people
online. That is 50K per second out of your bandwidth. 175MB per hour. Four
and a quarter gigabytes per day. 123 gigabytes per month. I hope you have an
"unlimited" hosting plan :-)

--
Richard.
Where do you live, mate?
I never heard of it.
In Israel it doesn't work like that at all.
Until this day I never thought anyone pays for bandwidth. Otherwise I
would owe my Internet company milions of dolars :) (my emule works
most of the day ).

May 29 '07 #4
On May 29, 12:35 pm, Gandalf <goldn...@gmail.comwrote:
On May 29, 11:58 am, "rf" <r...@invalid.comwrote:
"Gandalf" <goldn...@gmail.comwrote in message
news:11**********************@q69g2000hsb.googlegr oups.com...
>I wrote a chat width AJAX.
Crikey, re-write it will you mate!
After -Lost made a response to your post I dived in for a look.
I let it run for exactly 20 seconds. During that time it used up 100KB of my
bandwidth. That is 5K of data per second. Outrageous.
I pay many dollars per month for my bandwidth, and my cap is 1GB per month.
Over that I pay twenty cents per megabyte.
<does sumsIf I were to have your page simply sitting on my browser for
just 10 minutes your page would use up my bandwidth allocation for the
entire day.
And that is just me. What about your end. Lets say you have 10 people
online. That is 50K per second out of your bandwidth. 175MB per hour. Four
and a quarter gigabytes per day. 123 gigabytes per month. I hope you have an
"unlimited" hosting plan :-)
--
Richard.

Where do you live, mate?
I never heard of it.
In Israel it doesn't work like that at all.
Until this day I never thought anyone pays for bandwidth. Otherwise I
would owe my Internet company milions of dolars :) (my emule works
most of the day ).
Richard is right. If you plan to make something useful, that doesn't
just squander one's bandwidth (maybe in Israel it's not like that, but
in פלשתי×*×” it might be ;-) ), you shouldconsider making some kind of
connection-based protocol. For example, I am right now in the middle
of a project that serves similar purpose - I am making as part of the
site I am on a module that serves the purpose of "live" betting - the
page should be dynamically updated as soon as quotas or conditions for
bets change in the database. So I made a daemon (am making, as a
matter of fact) sitting on the server that keeps connections from Ajax
on the clients, and gives them information just in the moment when
something changes. You could make something like that too - broadcast
messages only when someone says something. Of course, you can't rely
on the Apache server, since it usually has some kind of time limit for
one request, so you have to write your own server, but that's pretty
trivial, you can even write it in PHP, if you're not familiar with c/c+
+/Java, although I would recommend C++. Of course, all of this if you
want to spend more time for this and you want to make quality chat. If
you need support for this, you can ask here or at comp.lang.c++ or
comp.lang.c or comp.unix.programming...

May 29 '07 #5

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

2
by: jason.m.ho | last post by:
Hello! 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...
1
by: jason.m.ho | last post by:
Hello, I want to make a chat system using the Comet push-style technology. I already wrote a poll-based one using Ajax, but I want to learn how to do server-pushes. Does anyone know of a good...
1
by: johnny | last post by:
Is there any open source "live web chat support" program or script out there? Any you can recommend?
0
by: =?Utf-8?B?SGVnb3Jv?= | last post by:
Hi I know that a chat applications could be developed in different ways, with database and every x seconds make queries to the table and retrieve if there are new messages ... with a flat file...
2
by: Srini | last post by:
Hi all, I am having a requirement to integrate a chat module in my project. So i need a open source chat tool which encapsulate to store the chat protocols internally - rather than doing it...
5
by: Tem | last post by:
Does anyone know how web-based chat like Gtalk in gmail works? how come it doesn't need to constantly refresh/send a request to the server to get new message? other web based chat room have to...
0
by: HamidSeta | last post by:
I am trying to implement the Asp.Net Ajax Chat Component. I wana intregate it to my existing database . How implement the IHttpApplicationUserAdapter interface If anyone know plz , let me...
0
by: Gabriel Genellina | last post by:
En Mon, 09 Jun 2008 15:32:00 -0300, Marcelo de Moraes Serpa <celoserpa@gmail.comescribió: I don't think it's a problem with ElementTree. Perhaps you are writing the same (global) configuration...
31
by: sarah aziz | last post by:
hello guys now i am working on a chat system and i am having a problem with the setTimeout can anyone help me this is all i have done javascript $(document).ready(function() {...
0
by: DolphinDB | last post by:
Tired of spending countless mintues downsampling your data? Look no further! In this article, you’ll learn how to efficiently downsample 6.48 billion high-frequency records to 61 million...
0
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
1
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: Vimpel783 | last post by:
Hello! Guys, I found this code on the Internet, but I need to modify it a little. It works well, the problem is this: Data is sent from only one cell, in this case B5, but it is necessary that data...
0
by: ArrayDB | last post by:
The error message I've encountered is; ERROR:root:Error generating model response: exception: access violation writing 0x0000000000005140, which seems to be indicative of an access violation...
1
by: PapaRatzi | last post by:
Hello, I am teaching myself MS Access forms design and Visual Basic. I've created a table to capture a list of Top 30 singles and forms to capture new entries. The final step is a form (unbound)...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
1
by: Defcon1945 | last post by:
I'm trying to learn Python using Pycharm but import shutil doesn't work
0
by: af34tf | last post by:
Hi Guys, I have a domain whose name is BytesLimited.com, and I want to sell it. Does anyone know about platforms that allow me to list my domain in auction for free. Thank you

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.