This is maybe not your only error.
Of course you have to store contents of a directory like : sub getfiles { opendir(DIR, $base) or die "can't open $base : $!"; my @files = grep !/^\.\.?$/, readdir(DIR); # Extract the . and .. file closedir(DIR); } # End sub getfiles But if you created the directory's manualy, as for example root. Your directory will look like : drwxr-xr-x 28 root root 2048 Jun 26 08:48 /data/homewww/../balginst/Bilder So apache ( ps -ef | grep httpd OR look at httpd.cong to de var USER) will probably not run as root. You'd better change the permissions to 0775 and set the group permissions to the group apache is running as ( look in httpd.conf for GROUP ). Or you just "chown wwwuser directory" and leave the permissions as they are. Good luck. Regs David > > > Hello! > > (2) > > $path="/data/homewww/../balginst/Bilder"; > > open(DIR, ">$path.$fname") or die > > binmode(DIR); > > > > The code writes data in the directory balginst and always writes Bilder and >Bilder.$fname. When I > > write $path/$fname, I get an error message Is a directory. What am I doing wrong? > > > > To open a directory use > opendir DIR, $dirname; > > Greetings, > Janek > > > -- > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > > -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]