Okay. So lucas gave me the idea of creating a chat client, though I used a different approach.
He used the network object and IP addresses, but I don't have no damn server. So can you guess what I used?
PHP!
Okay, so The client side works fine, but I'm getting into the php code and I want a server event to be transmitted. I believe I know how to receive it, i'm storing them in a text file, like event, \r\n, event, \r\n, etc. You can thank mason for the text file procedure. Lol!
So i have a file on my host called srv.php.
And yeah, I go into it, and I tell it to assign a variable called $dat to the data value of the $_POST request, effectively trapping sent data. The script sends data, colton has connected. I log out, colton has disconnected. I look at the text file, this is the really weird part. Yes it writes, I used fopen and fwrite and such. Wanna know what the file says?
00
Every event I send, it puts a 0! What the hell is up with that, and can somebody help me with that? i can do it in bgt, i just need a way of transferring data between the client and the php servers, my get methods work fine once the files are full.
An anomaly in the matrix. An error in existence. A being who cannot get inside the goddamn box! A.K.A. Me.