use the script that was posted before or use this one ( I used to use it to ftp our pb screenshots up to our server for checking after a match)
username
password
binary
cd /public_html/grawstats/graw-xml-data/
mput *.xml
quit
save as a txt file called ftp - change username & password to your own ftp login & if your stats are in a different place on your webserver then change that too
ftp -s:ftp.txt ftp.yourdomain.com
del *.xml
save as a bat file called stats.bat & palce both files in your log folder
set it as a scheduled task in windows to run every 30 mins (or whatever you wish)
log into your control panel of your domain & go to cron jobs
set up a cron job to run every 30 mins(or whatever you want)
the path to the cron job is
Directadmin control panel
/usr/local/bin/php -q /home/[color="Red"]YOURUSERNAME[/color]/domains/[color="Red"]YOURDOMAIN.COM[/color]/public_html/[color="Red"]grawstats[/color]/importstats.php
CPanel
/usr/local/bin/php -q /home/[color="Red"]YOURUSERNAME[/color]/public_html/grawstats/importstats.php
and again change the path to your grawstats folder if required
This will automate your stats by uploading them every 30 mins & calling the importstats page every 30 mins
if you dont want to delete your xml files from your server remove the del *.xml