2
A little while ago, I decided to explore and study some sockets to be worked in PHP. So I took a good tutorial on the internet and decided to create a very simple chat where I connect the server and two machines access the address to make the communication.
After having done this chat, came the idea of uploading a file in the chat itself, but I do not know if it is possible, or better, how to work with files within a chat communicating via socket?
Source I used for chat creation:
You can send the files by converting to Base64, so you send them as text and then decodes.
– Wictor Chaves
Or you can simply show in Base64 also rsrs
– Wictor Chaves