FTP - 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)
+--- Thread: FTP (
/showthread.php?tid=388748)
FTP -
dthompson - 30.10.2012
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.
Re: FTP -
[HK]Ryder[AN] - 30.10.2012
I don;t think it is possible(as of now) cuz there is no FTP plugin.
Maybe you can code one?:P
Response. -
dthompson - 30.10.2012
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
Re: FTP -
InfiniTy. - 30.10.2012
http://www.java-samples.com/showtuto...tutorialid=986
There's a guide..how to upload and download files with php from ftp