shan_emails has asked for the wisdom of the Perl Monks concerning the following question:
Hi All,
I could open a file under CGI site folder. But, I could not open a physical file which is not under the CGI site (eg c:\somefolder\somefile.txt) through href
my coding is as follows. please guide me where i made worng.
Thanks in advance,
Shanmugam A.
I could open a file under CGI site folder. But, I could not open a physical file which is not under the CGI site (eg c:\somefolder\somefile.txt) through href
my coding is as follows. please guide me where i made worng.
#!c:/perl/bin/perl.exe use strict; use CGI qw(:standard); use CGI::Carp qw(fatalsToBrowser warningsToBrowser); my $file = 'undersite/1.txt'; my $html = new CGI; print $html->header('text/html'); print $html -> start_html(); print $html -> start_form(); print $html -> p("Hi"); print $html -> p({}, "<a href=\"$file\">text file link</a>"); print $html -> end_html(); print $html -> end_form();
Thanks in advance,
Shanmugam A.
|
---|
Replies are listed 'Best First'. | |
---|---|
Re: could not open a physical file using href
by CountZero (Bishop) on Sep 21, 2009 at 17:55 UTC | |
Re: could not open a physical file using href
by ikegami (Patriarch) on Sep 21, 2009 at 15:09 UTC | |
by shan_emails (Beadle) on Sep 21, 2009 at 15:18 UTC | |
by ikegami (Patriarch) on Sep 21, 2009 at 15:27 UTC | |
Re: could not open a physical file using href
by Anonymous Monk on Sep 21, 2009 at 15:06 UTC |
Back to
Seekers of Perl Wisdom