Thread: Images in CGI

    #1
  1. No Profile Picture
    Registered User
    Devshed Newbie (0 - 499 posts)

    Join Date
    Nov 2012
    Posts
    1
    Rep Power
    0

    Images in CGI


    Hi Guys,

    I am working with CGI for developing web pages. But i am not able to add any images to that CGI page. Since i am working on <img src="/cgi-bin/apple.gif">... Not working.. Anyone help me out for this?...
  2. #2
  3. !~ /m$/
    Devshed Specialist (4000 - 4499 posts)

    Join Date
    May 2004
    Location
    Reno, NV
    Posts
    4,264
    Rep Power
    1810
    The image doesn't need to be in the cgi directory since it won't be executed. If you are just linking an existing image, put it in an image directory under document root.

    If you are returning an image from a script, that would be a different story.

IMN logo majestic logo threadwatch logo seochat tools logo