|
|
|
|
 |

August 13th, 2003, 05:27 PM
|
 |
Major General
|
|
Join Date: May 2002
Location: Linghem, Östergötland, Sweden
Posts: 2,255
Thanks: 0
Thanked 0 Times in 0 Posts
|
|
Re: OT:Is this the right forum for HTML help?
Quote:
Originally posted by tesco samoa:
sorry ruthia i do not know perl at all
|
I almost doesn't know it either, it's just an acquaintance, not a friend.
|

August 13th, 2003, 05:28 PM
|
|
Corporal
|
|
Join Date: Nov 2001
Location: Knoxville, TN
Posts: 196
Thanks: 0
Thanked 0 Times in 0 Posts
|
|
Re: OT:Is this the right forum for HTML help?
Just a way to get all filenames in a directory into a variable would be very helpful.
In perl, just use opendir and readir thus;
$directory = '/tmp/files';
@files = ();
opendir (DIR, $directory);
while ($file = readdir(DIR)) {
push @files, $file;
}
closedir(DIR);
and @files has your list of files.
[ August 13, 2003, 16:30: Message edited by: gravey101 ]
|

August 13th, 2003, 05:54 PM
|
 |
Major General
|
|
Join Date: May 2002
Location: Linghem, Östergötland, Sweden
Posts: 2,255
Thanks: 0
Thanked 0 Times in 0 Posts
|
|
Re: OT:Is this the right forum for HTML help?
Thanx, will test this!
|

August 13th, 2003, 06:48 PM
|
 |
Major General
|
|
Join Date: May 2002
Location: Linghem, Östergötland, Sweden
Posts: 2,255
Thanks: 0
Thanked 0 Times in 0 Posts
|
|
Re: OT:Is this the right forum for HTML help?
It fixed one of the problems, the one with listing the files, now I just need to fix the upload.
THANX!!!
Hey, maybe, I can use the same solution for that one... will see
[ August 13, 2003, 17:50: Message edited by: Ruatha ]
|

August 13th, 2003, 08:03 PM
|
 |
Major General
|
|
Join Date: May 2002
Location: Linghem, Östergötland, Sweden
Posts: 2,255
Thanks: 0
Thanked 0 Times in 0 Posts
|
|
Re: OT:Is this the right forum for HTML help?
I've made a script with your help that finds the right filename but when it shall download it it says "no such file", arghh!
|

August 13th, 2003, 08:28 PM
|
 |
Shrapnel Fanatic
|
|
Join Date: Jul 2001
Location: Southern CA, USA
Posts: 18,394
Thanks: 0
Thanked 12 Times in 10 Posts
|
|
Re: OT:Is this the right forum for HTML help?
Make sure to chmod the permissions of the uploads folder to 777, or else people will not be able to upload files there (need public write access and all).
|

August 13th, 2003, 08:49 PM
|
 |
Major General
|
|
Join Date: May 2002
Location: Linghem, Östergötland, Sweden
Posts: 2,255
Thanks: 0
Thanked 0 Times in 0 Posts
|
|
Re: OT:Is this the right forum for HTML help?
Uploading has been working all the time.
The current turn file download kind of works now, but it only downloads a short part (100Bytes or so) of the file, and it just want's to give it the extension .CGI
I store the Zip file in a single array @fileholder or string $fileholder.
Those are propably to small variables to hold the entire file.
Need to find a better way.
more work!
[ August 13, 2003, 20:02: Message edited by: Ruatha ]
|
| Thread Tools |
|
|
| Display Modes |
Hybrid Mode
|
Posting Rules
|
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
HTML code is On
|
|
|
|
|