Beefy Boxes and Bandwidth Generously Provided by pair Networks
Keep It Simple, Stupid
 
PerlMonks  

Re: Howto Include Image with HTML::Template

by rsiedl (Friar)
on Apr 03, 2007 at 05:52 UTC ( [id://607978]=note: print w/replies, xml ) Need Help??


in reply to Howto Include Image with HTML::Template

your path needs to be set relative to the root directory of your webserver.

i.e. if your webpage is served out public_html you should just use: /SPACE-Web2/test.png
  • Comment on Re: Howto Include Image with HTML::Template

Replies are listed 'Best First'.
Re^2: Howto Include Image with HTML::Template
by monkfan (Curate) on Apr 03, 2007 at 05:57 UTC
    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
      have you tried making it relative to your root web directory?
      also, perhaps check the file permissions on the directory and image.
      $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
Domain Nodelet?
Node Status?
node history
Node Type: note [id://607978]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others admiring the Monastery: (7)
As of 2024-04-18 05:51 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found