|
Author |
Message |
wavevader
Junior WebHelper

Joined: 24 Oct 2002
Posts: 2
|
Posted:
Thu Oct 24, 2002 3:20 pm (22 years, 6 months ago) |
  |
i'm trying to get the following sub-routine running on a NT server.
when exactly the same script is run on a Linux server it works fine, but when it is run on NT no file ($file) is uploaded.
any ideas?
sub UploadFile {
binmode $file;
if (open (UPLOADFILE, ">/storyImages/$filename")) {
binmode UPLOADFILE;
print UPLOADFILE $file;
close UPLOADFILE;
}
else{
return $!;
}
} |
|
|
    |
 |
Jos
Ex Team Member


Joined: 08 Jan 2002
Posts: 36
Location: The Netherlands
|
Posted:
Fri Oct 25, 2002 1:12 pm (22 years, 6 months ago) |
  |
wavevader wrote: | if (open (UPLOADFILE, ">/storyImages/$filename")) {
|
On a Unix Server is always used thisslasch ( / )
So try to use ( \ ) in the line and use a full path like C:\...
if (open (UPLOADFILE, ">C:\...\storyImages\$filename")){
I hope this is helping you.
Jos |
________________________________ Jos
** Team Member ** http://www.josvanras.com ** |
|
     |
 |
wavevader
Junior WebHelper

Joined: 24 Oct 2002
Posts: 2
|
Posted:
Fri Oct 25, 2002 1:59 pm (22 years, 6 months ago) |
  |
thanks, that's exactly what it was!
double slash though, 'c:\\..\\..' |
|
|
    |
 |
|
|
You cannot post new topics in this forum. You cannot reply to topics in this forum. You cannot edit your posts in this forum. You cannot delete your posts in this forum. You cannot vote in polls in this forum.
|
Page generation time: 0.139062 seconds :: 17 queries executed :: All Times are GMT
Powered by phpBB 2.0
© 2001, 2002 phpBB Group :: Based on an FI Theme
| |