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;
In reply to using opendir in CGI by Grygonos
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |