Beefy Boxes and Bandwidth Generously Provided by pair Networks
Your skill will accomplish
what the force of many cannot
 
PerlMonks  

Re: Display text and image on same page

by haukex (Archbishop)
on Jan 11, 2019 at 12:03 UTC ( [id://1228393]=note: print w/replies, xml ) Need Help??


in reply to Display text and image on same page

The <img> tag's src needs to be a URL, not a filename on the server. So it depends on what your webserver is configured to use as the document root - i.e. which directory on the server files are served from when the user visits http://www.example.com/. If the document root is for example /var/www, then you could maybe use <img src="/grafika/graphHour.png" ... (although depending on how your site is set up, relative URLs might be better).

By the way, it'd be better if you didn't generate HTML like this. I recommend you look into e.g. HTML::Tiny, Template::Toolkit, or maybe even a web framework, such as Mojolicious.

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://1228393]
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: (4)
As of 2024-04-25 07:20 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found