Pictures is cgi-bin dir do not show up!


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??
Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

Could you perhaps post the code which is meant to display the pictures?

Your web server has been configured to assume that all things requested from the cgi-bin are executable scripts.

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
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?
Cloud Class® Course: Ruby Fundamentals

This course will introduce you to Ruby, as well as teach you about classes, methods, variables, data structures, loops, enumerable methods, and finishing touches.

How are you trying to use them?
mmcwAuthor Commented:
It are pictures and I want to use them in the htmlout of the script!
This sounds like you are calling the pics with a url like,  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.
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today

From novice to tech pro — start learning today.