11-24-2016, 11:37 PM
These are a couple of scrips I've wrote a few weeks ago.
Requirements to run :Â
 - Apache2
 - Stomp
 - ActiveMQ
 - PHP 7 (didn't test it in PHP5 but it should work)
First Code:
http://pastebin.com/bcQZvC7L
OOP Code:
http://pastebin.com/8Dmia7nW
The functionality is pretty simple.Â
It doesn't require a database to work.Â
The messages are stored in ActiveMQ.Â
The username acts as a queue name.
I didn't add a password protected login function since it can be pretty easily bypassed and I didn't see the point in trying to secure it since it was made for my own entertainment.
If you see any mistakes please let me know. Also if you have any advice I would like to hear it.
Requirements to run :Â
 - Apache2
 - Stomp
 - ActiveMQ
 - PHP 7 (didn't test it in PHP5 but it should work)
First Code:
http://pastebin.com/bcQZvC7L
OOP Code:
http://pastebin.com/8Dmia7nW
The functionality is pretty simple.Â
It doesn't require a database to work.Â
The messages are stored in ActiveMQ.Â
The username acts as a queue name.
I didn't add a password protected login function since it can be pretty easily bypassed and I didn't see the point in trying to secure it since it was made for my own entertainment.
If you see any mistakes please let me know. Also if you have any advice I would like to hear it.