Problem while adding cgi.img

Hi,

I tried to insert an img file to my cgi script, but I had some problems.
when i run the tmp.rb file that I create on the server, I can’t see this
img. when I trying to run the generated html (using this script) on a
front-page or even on a regular browser I can see that the format that I
used is ok and I an see the image exactly where I placed it.
Can you please help me understand what is the problem using the img on
the server, and how to solve it, its realy importent …

Thanks,
Asaf

Asaf Dasa wrote:

Hi,

I tried to insert an img file to my cgi script, but I had some problems.
when i run the tmp.rb file that I create on the server, I can’t see this
img. when I trying to run the generated html (using this script) on a
front-page or even on a regular browser I can see that the format that I
used is ok and I an see the image exactly where I placed it.
Can you please help me understand what is the problem using the img on
the server, and how to solve it, its realy importent …

Thanks,
Asaf

In what directory is your image? And what path do you use for the image
in your ruby program?

7stud – wrote:

Asaf Dasa wrote:

Hi,

I tried to insert an img file to my cgi script, but I had some problems.
when i run the tmp.rb file that I create on the server, I can’t see this
img. when I trying to run the generated html (using this script) on a
front-page or even on a regular browser I can see that the format that I
used is ok and I an see the image exactly where I placed it.
Can you please help me understand what is the problem using the img on
the server, and how to solve it, its realy importent …

Thanks,
Asaf

In what directory is your image? And what path do you use for the image
in your ruby program?

the img is in the directory where tmp.rb is and I use the following code
:


cgi.img(“border” => “0”,“src” => “icon.jpg”,“alt” => “my icon”, “type”
=> “JPEG Image”, “width” => “600”, “height” => “200”)