Grygonos has asked for the wisdom of the Perl Monks concerning the following question:
its very basic.... and when I call this opendir in console mode it works.. but in CGI mode it fails... So my thought was ... the webserver doesn't know what the R:\ drive is .. it can only open files in the \htdocs folder of apache or .. \cgi-bin..... is that correct? or is there a way around it. I don't want to move the data... because it needs to be where it is... I'm just trying to build a web interface to it.#!/Perl/bin/perl use CGI; $tracking = new CGI; print $tracking->header(); print $tracking->start_html(); opendir(TRACKING, "R:\\"); @test = readdir TRACKING; print @test; print $tracking->end_html;
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: using opendir in CGI
by particle (Vicar) on Jun 20, 2003 at 13:50 UTC | |
|
Re: using opendir in CGI
by adrianh (Chancellor) on Jun 20, 2003 at 13:53 UTC | |
by Grygonos (Chaplain) on Jun 20, 2003 at 16:33 UTC |