Displaying 1 result from an estimated 1 matches for "ftp_photo".
2006 May 13
0
trouble with Dir.chdir
...m "Dir.chdir".
When I run this code, the FTP of photos is successfuly done.
But, the display of browser is white out.
When I comment out the line start from "Dir.chdir",
the trouble doesn''t 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''...