Thread datei upload anhand indexes (1 answers)
Opened by Gast at 2008-02-06 17:22

Gast Gast
 2008-02-06 17:22
#105650 #105650
Hallo!
Mal frage: ich möchte ein Datei im server anhand nur sein index laden; d.h Im server liegt beispielweise ein datei mit name "myfile_I.xls" ; anhand "I" möchte ich dieses datei öffnen.
Wie geht es mit eine Perl/CGI skript? ich habe folgende probiert aber es läuft nicht:
Code: (dl )
1
2
3
4
5
6
7
use Cwd;
$MyPlace = cwd();
opendir(DIR, $MyPlace)|| die "Error";
while ( my $File = readdir(DIR)) {
push(@Files, $File) if (!-d $File && $File =~/I/i);
}
closedir (DIR);

Vielen Dank.

View full thread datei upload anhand indexes