skroks609 Posted August 13, 2006 Share Posted August 13, 2006 Ok so i only started Php last week and i barely get the basics. But I really want to make a php chat the way i need it to be. Its going to be a chat for my new game, so i would like it to have avatars, admin features(stuff like banning, different avatars, special warnings) and i really need auto-delete. I know I am asking for alot, but if you can do it, please show me how.Thankyou, Curtis989 ;D ;D ;D Quote Link to comment Share on other sites More sharing options...
onlyican Posted August 13, 2006 Share Posted August 13, 2006 I think u need to know the basics before taking on a task like thatAlsoPHP is a server side language, It send its information and posts backTo build a chat you have several optionsRefresh the page every secondUse Flash and PHPUse Javascript and PHP Quote Link to comment Share on other sites More sharing options...
Chetan Posted August 13, 2006 Share Posted August 13, 2006 Here is what I use. A basic idea[b]The real page.[/b][b]--index.html[/b]1. Has a banner2. Has two <iframes> the top one stretchin 100% w and 60% h the one below 100% w and 20% h3. First iframes=dis.php4. Second iframe=add.php[b]Display page[/b][b]--dis.php[/b]1. Refreshes every 5 secs2. Reads a file chat.txt3. Formats it and displayss the contents[b]Add page[/b][b]--add.php[/b]1. Has a name feild on top, which has the contents of the cookie name.2. Has a message box.3. Once submitted it sets a cookie name with the value of name.4. writes to file chat.txt, the name and message.This helps a lot for one can write while still being able to see whats going on.If you had the same page having to refresh which has the display and add thing, it would not work good.You can also add smily support which is not @ all difficult[b]Note: This is an example of a PHP chat.[/b] Quote Link to comment Share on other sites More sharing options...
onlyican Posted August 13, 2006 Share Posted August 13, 2006 OR:You can download phpchat Quote Link to comment Share on other sites More sharing options...
Chetan Posted August 14, 2006 Share Posted August 14, 2006 Well that way you have a whole database of chat systems at hotscripts. Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.