eoin has asked for the wisdom of the Perl Monks concerning the following question:
Works grand its just that I can't get my images to load.#!F:\perl\bin\perl.exe -wT use strict; use CGI; my $q = CGI->new(); my $node = $q->param('node') || ""; my $html_dir_path = "..\\data\\html\\"; my $html_file_path = "$html_dir_path$node.txt"; open(HTML, "$html_file_path") or die "Error! Couldn't access HTML file +\n"; print "Content-type: text/html\n\n"; while(<HTML>) { print $_; } exit;
"..\htdocs\images\image.jpg"But I can't figure it out.
If everything seems to be going well, you obviously don't know what the hell is going on.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: CGI Image on localhost
by exussum0 (Vicar) on Dec 21, 2003 at 22:42 UTC | |
by eoin (Monk) on Dec 21, 2003 at 23:14 UTC | |
by exussum0 (Vicar) on Dec 21, 2003 at 23:23 UTC | |
by eoin (Monk) on Dec 21, 2003 at 23:28 UTC | |
|
Re: CGI Image on localhost
by Roger (Parson) on Dec 21, 2003 at 23:09 UTC | |
|
Re: CGI Image on localhost
by rchiav (Deacon) on Dec 21, 2003 at 20:36 UTC | |
by eoin (Monk) on Dec 21, 2003 at 20:45 UTC | |
by rchiav (Deacon) on Dec 21, 2003 at 22:16 UTC | |
by eoin (Monk) on Dec 21, 2003 at 23:07 UTC | |
|
Re: CGI Image on localhost
by CountZero (Bishop) on Dec 21, 2003 at 22:06 UTC |