in reply to Re: Howto Include Image with HTML::Template
in thread Howto Include Image with HTML::Template

Hi,
I forgot to mentioned that my Perl script with HTML::Template is stored under:
/home/monkfan/public_html/SPACE-Web2/cgi-bin
And the figure is stored under:
/home/monkfan/public_html/SPACE-Web2
Even though I've modified that script to have this:
$template->param( FIG => "../test.png" );
It still doesn't show the figure.

Regards,
Edward

Replies are listed 'Best First'.
Re^3: Howto Include Image with HTML::Template
by rsiedl (Friar) on Apr 03, 2007 at 06:01 UTC
    have you tried making it relative to your root web directory?
    also, perhaps check the file permissions on the directory and image.
Re^3: Howto Include Image with HTML::Template
by ahmad (Hermit) on Apr 03, 2007 at 09:43 UTC
    $template->param( FIG => "/SPACE-Web2/test.png" );

    if it doesn't work , then use full URL such like

    http://www.domain.com/test.png