How can I open a local file?

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

quoth the Zhan feng Wang:

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