Beefy Boxes and Bandwidth Generously Provided by pair Networks Russ
go ahead... be a heretic
 
PerlMonks  

Re^2: Howto Include Image with HTML::Template

by monkfan (Curate)
on Apr 03, 2007 at 05:57 UTC ( #607979=note: print w/ replies, xml ) Need Help??


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


Comment on Re^2: Howto Include Image with HTML::Template
Select or Download Code
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

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://607979]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others about the Monastery: (6)
As of 2014-04-23 19:50 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    April first is:







    Results (553 votes), past polls