[PHP] samp.ban
#1

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..)
Reply
#2

Search.
Reply
#3

This work altough my server isn't in the FTP?
Its in the /home folder (linux)..
Reply
#4

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.
Reply
#5

Asked, but do u know wheter it only work if the server located in the FTP ?
Because then I search further.
Reply
#6

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
Reply
#7

ok, but this work even if my Server aren't located in the FTP but in the home (/home/samp/.../) folder?
Reply
#8

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.
Reply
#9

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.
Reply
#10

no idea what in hell your asking for...

you need the FTP function to grab the file from the game server ?
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)