From: darren kirby Date: 2007-08-20T11:22:31+09:00 Subject: Re: how can I open a local file? quoth the Zhan feng Wang: > Hi,friends, > how can I get the path of a local file, so that I can open and read the > file? > in my webpage I have following: >
>
> Select A File:  
>     
>         
>
> > And e.g. I will get the fname="/home/wym/exdir/ruby/file1.rb", here the > path if local, how can I get the IP of the local path if my > ip="http://127.0.0.1"? > > Thanks Hi. I guess you may want to browse the CGI docs. [0], [1]. If that doesn't help then perhaps you need to formulate your question a bit clearer. I, for one, am not sure what you mean by "get the IP of the local path". [0] http://www.ruby-doc.org/core/classes/CGI.html [1] http://www.whytheluckystiff.net/ruby/pickaxe/html/lib_network.html#S3 -d -- darren kirby :: Part of the problem since 1976 :: http://badcomputer.org "...the number of UNIX installations has grown to 10, with more expected..." - Dennis Ritchie and Ken Thompson, June 1972