#1

Hi there.

I am currently experimenting to the boundaries of SA:MP and have come across an issue I would like to see if I can achieve. Currently, I have a 'SQLite' database storing my ban information under my 'scriptfiles' folder in my server.

I wish to get this database to automatically upload to a location of my web hosting server. I asked my provider whom supplies me the game server AND the web server (at different locations, I should probably add) and the response I got was this:

Quote:

Hello,

You could write a script in conjunction with a cron job to automatically download the file to the web server via FTP (this can be achieved with PHP's FTP function library).

Regards

Would anyone be able to help me achieve this in this way or any other?
Just to clarify, I wish to be able to get my gameserver to be able to automatically upload the SQLite database holding the ban information to my web hosting server in a different location.

All the best,
- Daniel.
Reply
#2

I don;t think it is possible(as of now) cuz there is no FTP plugin.
Maybe you can code one?:P
Reply
#3

I would have no clue even where to start mate, let alone being able to complete the thing to a working functionality, lol!

Please view my topic here and respond if you know further: https://sampforum.blast.hk/showthread.php?tid=388463
Reply
#4

http://www.java-samples.com/showtuto...tutorialid=986

There's a guide..how to upload and download files with php from ftp
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)