Welcome Guest ( Log In | Register)



 
Reply to this topicStart new topic
> Php And Irc, PHP-based IRC web client
coolcat50
post Dec 3 2007, 01:49 AM
Post #1


Super Member
*********

Group: [HOSTED]
Posts: 281
Joined: 5-October 07
From: Random Places
Member No.: 51,171
Spam Patrol



I am wondering whether or not you could create a basic client for IRC using PHP. I know that PHP does have IRC functions which I read about on php.net. I am not quite sure whether or not a client could be built around this. I do know that there is a CGI IRC client on the web. I use this while I am on my Wii I am wanting to incorporate a PHP IRC client into my website and use AJAX to automatically reload the chat. Well, if anybody could help that would be great.
Go to the top of the page
 
+Quote Post
jlhaslip
post Dec 3 2007, 03:10 AM
Post #2


A computer once beat me at chess, but it was no match for me at kick boxing.
Group Icon

Group: [MODERATOR]
Posts: 3,882
Joined: 24-July 05
From: In Trouble Again... still?
Member No.: 9,787
Spam Patrol



Internet Relay Chat Servers are not allowed at the Trap17 Hosting Accounts, as per the Terms of Service (TOS) and Acceptable Use Policy (AUP) found by reading the Trap17 readme file.
QUOTE
Internet Relay Chat (IRC) traffic is not permitted on our servers in any of its many forms including, but not limited to: bots and IRC servers.

Since this is a Shared Server, an IRC places too much demand on the Server and degrades the service for others.
Finding an IRC Server in your account will result in a Cancellation of your Hosting Account. No exceptions.

Trap17 Readme file here.
Go to the top of the page
 
+Quote Post
BuffaloHELP
post Dec 3 2007, 05:56 AM
Post #3


Desperately seeking "any key" to continue...
Group Icon

Group: Admin
Posts: 3,438
Joined: 23-April 05
From: Trap17 storage box
Member No.: 6,042



If we're just discussing about PHP programming for IRC, the perfect example is our Trap17 forum shoutbox. It is written in PHP and using AJAX to auto refresh at every 15 seconds or so. AJAX can be altered to automatically refresh when there's a new data submitted.

So IRC written in PHP is possible but not PHP alone. The standard function of "IRC" is not present, i.e. call function of irc(network.address:port), but you can configure the whole page to refresh when a new submit is detected. But as IRC user interface, the whole page refresh is very annoying. Therefore some type of AJAX is the better way to go.
Go to the top of the page
 
+Quote Post
coolcat50
post Dec 3 2007, 10:16 PM
Post #4


Super Member
*********

Group: [HOSTED]
Posts: 281
Joined: 5-October 07
From: Random Places
Member No.: 51,171
Spam Patrol



I wasn't going to have a server on my account. My IRC channel is hosted on dejatoons.net. So an IRC client is against TOS. Well, i still want to devleop one to see how to make one just in case I run a localhost and I can use this client. I do know that in PHP there are the ircg functions that can connect to IRC servers. I just don't see how I could output the messages once it starts. If this is against TOS then close the topic.
Go to the top of the page
 
+Quote Post
BuffaloHELP
post Dec 4 2007, 09:58 AM
Post #5


Desperately seeking "any key" to continue...
Group Icon

Group: Admin
Posts: 3,438
Joined: 23-April 05
From: Trap17 storage box
Member No.: 6,042



Trying to develop an IRC prototype and running IRC service are two different things. You may use Trap17 hosting as developing ground for your scripts, in hopes that you don't abuse Trap17 servers tongue.gif

You can use Trap17 hosting to develop even IRC client but what you should refrain is advertising/making widely available you're developing, which leads to visitors using your developing page to chat.

Visit http://www.handyphp.com/ one of AstaHost administrator's page. You can post your question or request for help/guidance.

Good luck and let us know how it goes.
Go to the top of the page
 
+Quote Post
gogoily
post Dec 6 2007, 05:31 AM
Post #6


Member [Level 2]
*****

Group: Members
Posts: 76
Joined: 30-October 05
Member No.: 13,571



Maybe we can write such a script with PHP, it has to be a script that using socket functions in PHP.
But as jlhaslip said, we can't place such pages in trap17.
Go to the top of the page
 
+Quote Post

Reply to this topicStart new topic

Collapse

> Similar Topics

Topics Topics
  1. Dynamically Select From 2 Tables Based On Id(1)
  2. Remove A Value From A Php Array Based On Its Value(5)
  3. Looking For Command Line Based Sql Modification(1)
  4. Creating Something With Co-ordinates With Php.(12)
  5. Sending E-mails Based On Intervals?(7)


 



- Lo-Fi Version Time is now: 26th July 2008 - 04:18 PM