using FTP upload on update

32 views
Skip to first unread message

brad.zdanivsky

unread,
Apr 3, 2012, 3:24:56 AM4/3/12
to xaxxon...@googlegroups.com
Does your external IP Address change? Would you like to have this out update when ever your boy boots up?

in the "/conf" folder, create a file named "ftp.properties". In this file add the required ftp server parameters, example below: 

user=tom
password=xxxx
folder=verticalchallenge/oculus

The main details of your bot will be placed in the given "folder" on the targeted ftp host. These details will be in plain text, but named with the ".php" file extension. The reason for this is because on the blog side, you're probably going to use wordpress or PHP to display the contents.

You'll see connection errors and successes in "/log/jvm.stdout" an example follows:

OCULUS: static, ftp connected: Socket[addr=/209.17.166.129,port=55982,localport=48117] last.php
OCULUS: static, ftp connected: Socket[addr=/209.17.166.129,port=49821,localport=48118] ip.php
OCULUS: static, ftp connected: Socket[addr=/209.17.166.129,port=53525,localport=48119] user.php
OCULUS: static, ftp connected: Socket[addr=/209.17.166.129,port=48852,localport=48120] state.php
OCULUS: static, ftp connected: Socket[addr=/209.17.166.129,port=37345,localport=48121] state.php
OCULUS: static, ftp connected: Socket[addr=/209.17.166.129,port=38965,localport=48122] last.php

Now, in you website, you just put a link like this, and it will always be current. You can display your current users and log in records this way too. 

<a target="_blank" href="http://<?php include("oculus/ip.php"); ?>:5080//oculus">rov login</a>


Reply all
Reply to author
Forward
Message has been deleted
0 new messages