[PHP] samp.ban - Printable Version
+- SA-MP Forums Archive (
https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (
https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (
https://sampforum.blast.hk/forumdisplay.php?fid=12)
+---- Forum: Help Archive (
https://sampforum.blast.hk/forumdisplay.php?fid=89)
+---- Thread: [PHP] samp.ban (
/showthread.php?tid=149607)
[PHP] samp.ban -
Headshot1108 - 22.05.2010
Hi how I can get the samp.ban from my gameserver folder into the FTP folder.
So what code (I don't can PHP good..)
Re: [PHP] samp.ban -
Calgon - 22.05.2010
Search.
Re: [PHP] samp.ban -
Headshot1108 - 22.05.2010
This work altough my server isn't in the FTP?
Its in the /home folder (linux)..
Re: [PHP] samp.ban -
Calgon - 22.05.2010
Quote:
Originally Posted by Headshot1108
This work altough my server isn't in the FTP?
Its in the /home folder (linux)..
|
Ask in the thread.
Re: [PHP] samp.ban -
Headshot1108 - 22.05.2010
Asked, but do u know wheter it only work if the server located in the FTP ?
Because then I search further.
Re: [PHP] samp.ban -
Bayler - 22.05.2010
This would be my best suggestion ...
http://forum.sa-mp.com/index.php?topic=136739.0
It does have some flaws, like if the Ban File is empty, the fread( function will generate errors ... a few edits will fix that. But All in All, it works fine.
Demo of integrated use:
http://www.drpweb.info/modules.php?name=ACP&op=banlist
to KEEP the File Updated, i suggest using a CronTask to run the cron.php file every X time..im using 5 min intervals to keep accuracy, which is way overboard ... with a little imagination, you can come up with extra usages
Re: [PHP] samp.ban -
Headshot1108 - 22.05.2010
ok, but this work even if my Server aren't located in the FTP but in the home (/home/samp/.../) folder?
Re: [PHP] samp.ban -
Bayler - 22.05.2010
yes it does..the key, is the configuration...
you can simply change the FTP location to whatever directory ('/Up/Your/Ass/samp.ban')
I CAN tell you, that if your hosts 'root' directory is going to be something like (/123 123 123 123/samp.ban)
that its better to create a 2ndary FTP account pointing directly to the 'base' of your Game Server directory.
On a Second thought, its better to run a 2nd FTP account for script access anyways.
Re: [PHP] samp.ban -
Headshot1108 - 22.05.2010
Hmm I only need a code that my FTP (PHP file) search in the Root folder for example the ban file.
Because its safer to run the server in the root (home) folder.
Re: [PHP] samp.ban -
Bayler - 22.05.2010
no idea what in hell your asking for...
you need the FTP function to grab the file from the game server ?