SA-MP Forums Archive
PHP-MySQL Live Server Console [Kinda like Custom IRC] - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: Other (https://sampforum.blast.hk/forumdisplay.php?fid=7)
+--- Forum: Everything and Nothing (https://sampforum.blast.hk/forumdisplay.php?fid=23)
+--- Thread: PHP-MySQL Live Server Console [Kinda like Custom IRC] (/showthread.php?tid=314944)



PHP-MySQL Live Server Console [Kinda like Custom IRC] - Sinner - 01.02.2012

I build a console from scratch using nothing but PHP, MySQL and some JavaScript to refresh it. It got up to a point where there was no lag and I'm pretty proud of it . It also allows you to talk in-game with the players!!

Thought you guys & gals might like it, it's on my website's UCP so you need to log in:

Username: samp_test
Password: 1234

(it will auto-redirect you after you log in)

Website: http://www.stunt-planet.com/ucp/?pg=console

What you see is a live feed from our server, you can type in text in the input box to chat, admins can also see bans, kicks, etc .. and can talk in the admin chat (on 3 different levels) using the console. Regular players can only chat in the main chat.

I'm not trying to promote my website ... I just haven't seen this anywhere else yet so I thought it would be cool to show it's possible to build an actual IRC from just mysql and php.

Suggestions are always welcome


Re: PHP-MySQL Live Server Console [Kinda like Custom IRC] - Lorenc_ - 01.02.2012

Not really suitable, consider using the sockets plugin for greater usage.


Re: PHP-MySQL Live Server Console [Kinda like Custom IRC] - Sinner - 01.02.2012

Quote:
Originally Posted by Lorenc_
View Post
Not really suitable, consider using the sockets plugin for greater usage.
Could you explain what it does? Never really used it before :/


Re: PHP-MySQL Live Server Console [Kinda like Custom IRC] - Cameltoe - 01.02.2012

I can't even display the website, it seems to be down?


Re: PHP-MySQL Live Server Console [Kinda like Custom IRC] - marinov - 01.02.2012

Omg this is awesome !


Re: PHP-MySQL Live Server Console [Kinda like Custom IRC] - [UE]Milan - 01.02.2012

nice one and the website is running fine


Re: PHP-MySQL Live Server Console [Kinda like Custom IRC] - s0cket - 01.02.2012

It's pretty nice, but maybe you should use jQuery to update the page so it wouldn't flicker, but rather fade in new entries(kindof like youtube automatically updated comments).


Re: PHP-MySQL Live Server Console [Kinda like Custom IRC] - Lee_Percox - 01.02.2012

AJAX calls would be better, so that the page doesn't even look like it's refreshing or nothing.


Re: PHP-MySQL Live Server Console [Kinda like Custom IRC] - Sinner - 01.02.2012

I'll look into the AJAX, the fading is a really great idea


Re: PHP-MySQL Live Server Console [Kinda like Custom IRC] - Cameltoe - 01.02.2012

Quote:
Originally Posted by [UE]Milan
View Post
nice one and the website is running fine
By the time i wrote that the website didnt run fine.

OP:
Rather use AJAX or Jquery to reload the content.