Ban List on my Website?
#1

How do I display Ban List on my Website? I tried to use the PHP plugins but I can't seem to make them work, please tell me how to. I will really appreciate.

Thanks.
Reply
#2

Do you have FTP access to your server?
Reply
#3

if you are hosting webpage and server on same dedicated or VPS you can use PHP functions fopen() and fread() and display samp.ban file.

If you aren't using same dedicated server or VPS you should store your bans in mysql database and then show the data from database with PHP to website.
Reply
#4

Quote:
Originally Posted by Ironboy500[TW]
Посмотреть сообщение
If you aren't using same dedicated server or VPS you should store your bans in mysql database and then show the data from database with PHP to website.
Or you can cache / cron the file using PHP's native support for FTP functions..
Reply
#5

Use some PHP functions that connects to your server FTP details. Then simply make use a PHP function to load the contents of samp.ban, and you're done.

CRON jobs might be useful, and it's actually recommended.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)