Click to See Complete Forum and Search --> : CGI-perl


Bookman
10-24-2002, 11:51 PM
I cannot figure this out, it is probably something simple but I need help:

I'm creating a Perl (Newbie Perl Programmer) cgi script. My output web page works fine, except the graphics will not display. My code for that part is as follows:

print "<img src\"./sctcicon2.gif\">";

The graphic is in the same directory.

I've tried almost everything I can think of, without quotes, without the path, with the full path.

When I view source on my output page, it all looks good.

I know this has to be something simple that I am not doing.

Any help would be greatly appreciated

Bookman
10-25-2002, 12:26 AM
Ok, knew it had to be something simple. I moved my graphic files up a directory, and now everything works. Quick question, why didn't it work with the files in my /cgi-bin directory? Can I not have anything in that directory except cgi scripts?

RSparkyC
11-19-2002, 10:34 AM
The reason it didn't work is because everything in your cdi-bin dir the server tries to execute...I think