in reply to Proble with image on Perl-CGI
<img src="/var/www/upload/$filename" alt="Photo" />
If you domain is example.com, the browser will try to load the image http://example.com/var/www/upload/$filename, which is not what you want. You need to supply the path relative to your document root, for example /upload/$filename.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: Proble with image on Perl-CGI
by daynite (Initiate) on Mar 26, 2009 at 15:31 UTC | |
by moritz (Cardinal) on Mar 26, 2009 at 15:56 UTC | |
by daynite (Initiate) on Mar 26, 2009 at 16:14 UTC | |
by lostjimmy (Chaplain) on Mar 26, 2009 at 16:44 UTC | |
by daynite (Initiate) on Mar 26, 2009 at 16:37 UTC |