SA-MP Forums Archive
Ban List on my Website? - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: SA-MP Server (https://sampforum.blast.hk/forumdisplay.php?fid=6)
+--- Forum: Server Support (https://sampforum.blast.hk/forumdisplay.php?fid=19)
+--- Thread: Ban List on my Website? (/showthread.php?tid=175686)



Ban List on my Website? - markjaysonpinoy - 10.09.2010

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.


Re: Ban List on my Website? - Westie - 10.09.2010

Do you have FTP access to your server?


Re: Ban List on my Website? - Ironboy500[TW] - 10.09.2010

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.


Re: Ban List on my Website? - iLinx - 10.09.2010

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..


Re: Ban List on my Website? - ••• ĤБĶБM ••• - 12.09.2010

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.