Beefy Boxes and Bandwidth Generously Provided by pair Networks
There's more than one way to do things
 
PerlMonks  

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

by monkfan (Curate)
on Apr 03, 2007 at 05:57 UTC ( [id://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

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

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others making s'mores by the fire in the courtyard of the Monastery: (5)
As of 2024-04-23 06:21 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found