SAMP Realtime Server Logs
#1

I want to know a few things.

How do i view the server logs of my server (which is hosted by serverffs) in real time in a php panel ive already made?

How do i add a rcon panel that exucutes rcon commands in real time into my panel. (I need one like already made)

Thx
Reply
#2

1) You can't, without a complex cURL function
2) Search, there's hundreds of released "rcon panels."
Reply
#3

You can also make it by yourself, this is what you need:

* MySQL
* Update MySQL every time someone talks, does a command, etc.
* Make Ajax script that reads live the MySQL logs.
Reply
#4

Quote:
Originally Posted by WackoX
Посмотреть сообщение
You can also make it by yourself, this is what you need:

* MySQL
* Update MySQL every time someone talks, does a command, etc.
* Make Ajax script that reads live the MySQL logs.
Thats to easy i want a challenge And besides the mysql would HATE me xD
Reply
#5

are you looking for something like what serverffs has? Like the logs in real time?
Reply
#6

Yes
Reply
#7

Quote:
Originally Posted by WackoX
Посмотреть сообщение
You can also make it by yourself, this is what you need:

* MySQL
* Update MySQL every time someone talks, does a command, etc.
* Make Ajax script that reads live the MySQL logs.
That's too complicated if your script doesn't use MySQL, if you don't want to use MySQL you can write an AJAX script to read the last lines of the log (say 100) every 20-30 seconds. Then create a PHP script (and run it as a cronjob every minute) to retrieve a copy of the server log from the server via FTP.

There would be a delay of ~1 minute with the log. If you use MySQL, you can make it almost real-time, assuming that you can remote connect to your MySQL DB (also using AJAX).
Reply
#8

PHP and FTP? That what I use.
Reply
#9

Ive never tried php and ftp, can you maybe show me how?
Reply


Forum Jump:


Users browsing this thread: 3 Guest(s)