chriso has asked for the wisdom of the Perl Monks concerning the following question:
and others. (I don't get any error messages or log errors so if I've mistyped anything here its a local error here) I have printed out the variables and they appear to be fine. $courselocation prints as ist001 and $value prints as newlogotr.gif. My root directory isprint "<IMG SRC=$courselocation/images/$value>"; print "<IMG SRC=\"$courselocation/images/$value\">"; print "<IMG SRC=/$courselocation/images/$value>"; print img(-name=>'image', -src=>'$courselocation/images/$value');
In every case the little square box appears where the image is supposed to be, but no image. I've checked and double checked spelling, syntax, etc. I tried it at home using:print "<IMG SRC=novonyx/suitspot/docs/perlroot/ist001/images/newlogotr +.gif>"; print "<IMG SRC=/novonyx/suitspot/docs/perlroot/ist001/images/newlogot +r.gif>"; print "<IMG SRC=\"novonyx/suitspot/docs/perlroot/ist001/images/newlogo +tr.gif\">";
where $value = images/newlogotr.gif and it worked fine. At work I'm using perl 5.? but its not 5.6 which is what I'm using at home. I didn't know if 5.6 handled images differently or not. I suspect the problem is with my server. I guess what I'm asking for is any other troubleshooting ideas you might be able to provide. I've run out of ideas.<img src=$value>
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: displaying an image
by little (Curate) on Jan 17, 2002 at 18:16 UTC | |
|
Re: displaying an image
by Masem (Monsignor) on Jan 17, 2002 at 19:40 UTC | |
|
Re: displaying an image
by newbie00 (Beadle) on Jan 17, 2002 at 18:12 UTC | |
|
Re: displaying an image
by giulienk (Curate) on Jan 17, 2002 at 18:12 UTC | |
|
Re: displaying an image
by mrbbking (Hermit) on Jan 17, 2002 at 19:53 UTC | |
|
Re: displaying an image
by Tetramin (Sexton) on Jan 18, 2002 at 06:55 UTC |