SA-MP Forums

Go Back   SA-MP Forums > Other > Everything and Nothing

Reply
 
Thread Tools Display Modes
Old 01/02/2012, 08:24 AM   #1
Sinner
Gangsta
 
Sinner's Avatar
 
Join Date: Aug 2010
Location: On This Mortal Coil
Posts: 770
Reputation: 292
Default PHP-MySQL Live Server Console [Kinda like Custom IRC]

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
__________________
Please use the search feature before asking a question.
Sinner is offline   Reply With Quote
Old 01/02/2012, 08:50 AM   #2
Lorenc_
High-roller
 
Lorenc_'s Avatar
 
Join Date: Jan 2010
Location: Australia
Posts: 3,793
Reputation: 1179
Default Re: PHP-MySQL Live Server Console [Kinda like Custom IRC]

Not really suitable, consider using the sockets plugin for greater usage.
__________________
Join the best Cops And Robbers in SA-MP, today. svr.sfcnr.com:7777

Lorenc_ is offline   Reply With Quote
Old 01/02/2012, 08:54 AM   #3
Sinner
Gangsta
 
Sinner's Avatar
 
Join Date: Aug 2010
Location: On This Mortal Coil
Posts: 770
Reputation: 292
Default Re: PHP-MySQL Live Server Console [Kinda like Custom IRC]

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 :/
__________________
Please use the search feature before asking a question.
Sinner is offline   Reply With Quote
Old 01/02/2012, 09:02 AM   #4
Cameltoe
High-roller
 
Cameltoe's Avatar
 
Join Date: Apr 2010
Location: Norway
Posts: 1,741
Reputation: 24
Default Re: PHP-MySQL Live Server Console [Kinda like Custom IRC]

I can't even display the website, it seems to be down?
Cameltoe is offline   Reply With Quote
Old 01/02/2012, 12:04 PM   #5
marinov
Gangsta
 
marinov's Avatar
 
Join Date: Oct 2010
Location: San Andreas
Posts: 591
Reputation: 8
Default Re: PHP-MySQL Live Server Console [Kinda like Custom IRC]

Omg this is awesome !
__________________
http://mczombiecom.co.nr/
marinov is offline   Reply With Quote
Old 01/02/2012, 12:07 PM   #6
[UE]Milan
High-roller
 
[UE]Milan's Avatar
 
Join Date: Jan 2012
Location: Right in front of forum.sa-mp.com
Posts: 1,208
Reputation: 160
Default Re: PHP-MySQL Live Server Console [Kinda like Custom IRC]

nice one and the website is running fine
[UE]Milan is offline   Reply With Quote
Old 01/02/2012, 01:00 PM   #7
s0cket
Little Clucker
 
s0cket's Avatar
 
Join Date: Dec 2011
Location: london
Posts: 40
Reputation: 6
Default Re: PHP-MySQL Live Server Console [Kinda like Custom IRC]

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).
__________________
my website
s0cket is offline   Reply With Quote
Old 01/02/2012, 01:10 PM   #8
Lee_Percox
Big Clucker
 
Lee_Percox's Avatar
 
Join Date: Jun 2008
Location: England, Birmingham;
Posts: 52
Reputation: 10
Default Re: PHP-MySQL Live Server Console [Kinda like Custom IRC]

AJAX calls would be better, so that the page doesn't even look like it's refreshing or nothing.
__________________
Lee_Percox is offline   Reply With Quote
Old 01/02/2012, 01:35 PM   #9
Sinner
Gangsta
 
Sinner's Avatar
 
Join Date: Aug 2010
Location: On This Mortal Coil
Posts: 770
Reputation: 292
Default Re: PHP-MySQL Live Server Console [Kinda like Custom IRC]

I'll look into the AJAX, the fading is a really great idea
__________________
Please use the search feature before asking a question.
Sinner is offline   Reply With Quote
Old 01/02/2012, 05:09 PM   #10
Cameltoe
High-roller
 
Cameltoe's Avatar
 
Join Date: Apr 2010
Location: Norway
Posts: 1,741
Reputation: 24
Default Re: PHP-MySQL Live Server Console [Kinda like Custom IRC]

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.
Cameltoe is offline   Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
How to Live Stream MYSQL Logs? farmer1710 Help Archive 2 05/05/2011 07:46 AM
[NEWS] ServerFFS Live Support is now just Live Sales niCe Everything and Nothing 22 02/09/2010 11:22 PM
[HELP] Server Console. MikkelGutten Help Archive 8 13/07/2010 07:03 PM
Live Chat in rcon console? SEC Help Archive 17 05/04/2009 11:56 PM


All times are GMT. The time now is 06:18 AM.


Powered by vBulletin® Version 3.8.6
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.