How-To: Automatic Upload of FLstats...
Do you use FLstat , but don't/can't run a webserver on the same machine as FLserver? Do you have to manually upload the "flstat.html" file to your own webspace, but find it tedious? If so, then I just may have the solution for you:
The trick is to find a program that let you upload from the command line, and then you could make it do it from the "update.cmd" file... I do something very similar for uploading the Global Stats from my Linux box. Have a look at NcFTP - download and install the Windows client (you may be able to find other alteratives). Then, you want to be using the command "ncftpput" in your "update.cmd". For example:
<pre><font size=1 face=Courier> /path/to/NcFTP/ncftpput -a -f ftp.txt remote/path flstat.html </font></pre>
The line will upload the file "flstat.html" to your ftp server (in ASCII mode), into the directory "remote/path". The file "ftp.txt" contains the following lines:
<pre><font size=1 face=Courier> host ftp.myhost.com
user myusername
pass mypassword </font></pre>
IMPORTANT: Be very careful about your security - your password is stored on the computer here, so you must make sure that no one can get to it!
And that should be about it. Hope this is useful to someone...
Cryo.
Cryogenius - Author of FLstat - Freelancer Rankings for the Web.
Edited by - Cryogenius on 7/20/2004 2:08:46 AM
The trick is to find a program that let you upload from the command line, and then you could make it do it from the "update.cmd" file... I do something very similar for uploading the Global Stats from my Linux box. Have a look at NcFTP - download and install the Windows client (you may be able to find other alteratives). Then, you want to be using the command "ncftpput" in your "update.cmd". For example:
<pre><font size=1 face=Courier> /path/to/NcFTP/ncftpput -a -f ftp.txt remote/path flstat.html </font></pre>
The line will upload the file "flstat.html" to your ftp server (in ASCII mode), into the directory "remote/path". The file "ftp.txt" contains the following lines:
<pre><font size=1 face=Courier> host ftp.myhost.com
user myusername
pass mypassword </font></pre>
IMPORTANT: Be very careful about your security - your password is stored on the computer here, so you must make sure that no one can get to it!
And that should be about it. Hope this is useful to someone...
Cryo.
Cryogenius - Author of FLstat - Freelancer Rankings for the Web.
Edited by - Cryogenius on 7/20/2004 2:08:46 AM