I have this bit of code in a cgi script and cannot seems to get it it work.  Is there any problem in calling the opendir command from a cgi script?
 
It always comes back with cannot opendir directory.
If I give it a local path instead of remote path, it open but prints nothing.
Any ideas
Thanks in advance
 
$CUR_DIR = "\\\\myserver\\e\$\\dir1\\dir2
 
opendir(HOMEDIR, $CUS_DIR) || die "can't open customers home directory:$!";
while(defined ($file = readdir(HOMEDIR))) {
 next if $file =~ /^\.\.?$/;
 next if -f $file;
 print "$file\n";
}


Do you Yahoo!?
Protect your identity with Yahoo! Mail AddressGuard

Reply via email to