• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 333
  • Last Modified:

Pictures is cgi-bin dir do not show up!

Hello,

I have a question:

When I place my pictures I use for my script in the cgi-bin dir they do not show up.
When I place them outsite of the cgi-bin dir it workes fien.

Why is this??
0
mmcw
Asked:
mmcw
1 Solution
 
GnissmanCommented:
Could you perhaps post the code which is meant to display the pictures?

Gniss
0
 
jhurstCommented:
Your web server has been configured to assume that all things requested from the cgi-bin are executable scripts.
0
 
mmcwAuthor Commented:
Images can not be used when they are placed into my cgi-bin dir? Is that correct?
Or is there a way to use them anyway?
0
The 14th Annual Expert Award Winners

The results are in! Meet the top members of our 2017 Expert Awards. Congratulations to all who qualified!

 
ozoCommented:
How are you trying to use them?
0
 
mmcwAuthor Commented:
It are pictures and I want to use them in the htmlout of the script!
0
 
jsatterlCommented:
This sounds like you are calling the pics with a url like, http://mydomain.com/cgi-bin/mymug.jpg.  Most web servers will try to execute mymug.jpg which will return a broken image if the mymug.jpg is truly an image.  You can try setting the file permission on the image to 644 so that the execution bit is not on, but I doubt that would solve your problem.  The only way to get around this would be to put the images in a non script aliased directory or make your images little perl scripts which print out a content type of image/jpeg and then open the real image file and print away.
0

Featured Post

Hire Technology Freelancers with Gigs

Work with freelancers specializing in everything from database administration to programming, who have proven themselves as experts in their field. Hire the best, collaborate easily, pay securely, and get projects done right.

Tackle projects and never again get stuck behind a technical roadblock.
Join Now