Displaying 1 result from an estimated 1 matches for "fhostname".
Did you mean:
hostname
2006 May 13
0
trouble with Dir.chdir
...happen.
Is there anything wrong with my usage of "Dir.chdir"?
def ftp_photo
$basedir = "/home/yosuke/public_html/myalbum/albums/"
$tempdir = "/home/yosuke/public_html/testing/tempPhoto/"
targetdir = params[:targetdir]
@targetdir = params[:targetdir]
fhostname = ''hogefpt.co.jp''
fusername = ''hoge''
fuserpass = ''hogehoge''
fbasedir = ''/hogehoge/''
targetdirpath = $tempdir + targetdir
Dir.chdir targetdirpath
begin
ftp = Net::FTP.open(fhostname,fusername,fuserpass)...