Simple CMD/PHP Chat!

by CristoferK in Living > Holidays

332 Views, 2 Favorites, 0 Comments

Simple CMD/PHP Chat!

descărcare.png

Hi! In this tutorial I will show you how to make a simple chat!

Code 1

code2.png

Open notepad and write this:

@echo off
color 0a

title Chat

echo Hi, welcome to Chat!

echo.

set /p username=Enter your name:

echo %username% had joined! >>join.dat

:message

set /p message=Say:

goto :send

:send

echo.

echo %username%: %message% (%time%)>> log.dat

goto :message

Now save this as Chat.bat

Code 2

code2.png

Open a new file in notepad and write this:

@echo off
color 0a

:read

cls

type join.dat

echo.

type log.dat

echo.

timeout /t 2

goto read

Save this document as reciver.bat

How to Make the Chat to Work?

descărcare.png

Ok!

Now we need to open both tabs!

And that's it! I hope you succeeded and you liked it!

Here are the