Koozali.org: home of the SME Server
Legacy Forums => General Discussion (Legacy) => Topic started by: Roy Davies on July 11, 2003, 05:33:34 PM
-
Hi,
I have written a perl script which sits in a cgi-bin folder under an ibay. It generates a webpage including references to images also in the cgi-bin folder. However, the webpage shows just the X 'can't find image' logo and not the actual image. What am I doing wrong?
The code looks like this:
print "
";
I have set the access rights to 777 on the jpgs, and the ibay is open to all at the moment, so there should not be any access rights problem.
/Roy.
-
I'm pretty sure that you can't serve images from the cgi directory. Put them in the root or a subdirectory of the root and point to them there in you script.
I had a similar problem and solved it by putting the images in a directory called images ( subdirectory of www directory) and then pointed to the actual location in tne cgi script
i.e