|
 |
asp_web_howto thread: FTP from one domain to another
Message #1 by <odempsey@b...> on Mon, 14 Jan 2002 16:30:17 -0000
|
|
This is a multi-part message in MIME format.
------=_NextPart_000_0007_01C19D18.C07D5620
Content-Type: text/plain;
charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable
Hi there
is it possible to ftp a file from one domain to another?
The reason why I ask is that I want to be able to write changes to the
database on one domain to a text file and transfer this text file to the
other domain so that it can be picked up and added to the database on
that server later on.
Kind Regards
Oliver Dempsey
Message #2 by Oleg Kapeljushnik <c-oleg.kapeljushnik@w...> on Mon, 14 Jan 2002 11:42:57 -0500
|
|
This is a multi-part message in MIME format.
--Boundary_(ID_kjtlqXT8ku7la/Az2RhSEg)
Content-type: text/plain; charset=iso-8859-1
Content-transfer-encoding: 7bit
You can FTP file from any computer to any computer within the same network
or not.
Just make sure that your FTP site configured correctly (have write
permission if you need one)
Oleg
-----Original Message-----
From: odempsey@b... [mailto:odempsey@b...]
Sent: January 14, 2002 11:30 AM
To: ASP Web HowTo
Subject: [asp_web_howto] FTP from one domain to another
Hi there
is it possible to ftp a file from one domain to another?
The reason why I ask is that I want to be able to write changes to the
database on one domain to a text file and transfer this text file to the
other domain so that it can be picked up and added to the database on that
server later on.
Kind Regards
Oliver Dempsey
$subst('Email.Unsub').
Message #3 by <odempsey@b...> on Mon, 14 Jan 2002 22:00:01 -0000
|
|
This is a multi-part message in MIME format.
------=_NextPart_000_018D_01C19D46.D0AC2A20
Content-Type: text/plain;
charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable
Hi Oleg
I'm not sure you understand what I mean. Can I copy a file from
http://www.onedomain.com to www.anotherdomain.com
using an ASP page on http://www.onedomain.com if they are not on the
same server?
Kind Regards
Oliver Dempsey
----- Original Message -----
From: Oleg Kapeljushnik
To: ASP Web HowTo
Sent: Monday, January 14, 2002 4:42 PM
Subject: [asp_web_howto] RE: FTP from one domain to another
You can FTP file from any computer to any computer within the same
network or not.
Just make sure that your FTP site configured correctly (have write
permission if you need one)
Oleg
-----Original Message-----
From: odempsey@b... [mailto:odempsey@b...]
Sent: January 14, 2002 11:30 AM
To: ASP Web HowTo
Subject: [asp_web_howto] FTP from one domain to another
Hi there
is it possible to ftp a file from one domain to another?
The reason why I ask is that I want to be able to write changes to
the database on one domain to a text file and transfer this text file to
the other domain so that it can be picked up and added to the database
on that server later on.
Kind Regards
Oliver Dempsey
$subst('Email.Unsub').
$subst('Email.Unsub').
Message #4 by "U K H" <registerukh@h...> on Mon, 14 Jan 2002 16:47:24 -0600
|
|
You need ASPInet component. Go to http://www.serverobjects.com/products.htm
and find for ASPInet component. With 3-4 lines of code you can FTP files
from serverA to serverB using ASP. :-)
>From: <odempsey@b...>
>Reply-To: "ASP Web HowTo" <asp_web_howto@p...>
>To: "ASP Web HowTo" <asp_web_howto@p...>
>Subject: [asp_web_howto] RE: FTP from one domain to another
>Date: Mon, 14 Jan 2002 22:00:01 -0000
>
>Hi Oleg
>I'm not sure you understand what I mean. Can I copy a file from
>http://www.onedomain.com to www.anotherdomain.com
>using an ASP page on http://www.onedomain.com if they are not on the same
>server?
>
>
>Kind Regards
>Oliver Dempsey
>
>
> ----- Original Message -----
> From: Oleg Kapeljushnik
> To: ASP Web HowTo
> Sent: Monday, January 14, 2002 4:42 PM
> Subject: [asp_web_howto] RE: FTP from one domain to another
>
>
> You can FTP file from any computer to any computer within the same
>network or not.
> Just make sure that your FTP site configured correctly (have write
>permission if you need one)
>
> Oleg
>
> -----Original Message-----
> From: odempsey@b... [mailto:odempsey@b...]
> Sent: January 14, 2002 11:30 AM
> To: ASP Web HowTo
> Subject: [asp_web_howto] FTP from one domain to another
>
>
> Hi there
> is it possible to ftp a file from one domain to another?
>
> The reason why I ask is that I want to be able to write changes to
>the database on one domain to a text file and transfer this text file to
>the other domain so that it can be picked up and added to the database on
>that server later on.
>
> Kind Regards
> Oliver Dempsey
>$subst('Email.Unsub').
>$subst('Email.Unsub').
>
>
>$subst('Email.Unsub').
_________________________________________________________________
MSN Photos is the easiest way to share and print your photos:
http://photos.msn.com/support/worldwide.aspx
Message #5 by "Owen Mortensen" <ojm@a...> on Mon, 14 Jan 2002 16:37:54 -0700
|
|
This is a multi-part message in MIME format.
------=_NextPart_000_0023_01C19D19.D0B57260
Content-Type: text/plain;
charset="us-ascii"
Content-Transfer-Encoding: 7bit
Hard to do (for obvious security reasons). We ended up creating a COM
object, instantiated through MTS as a network user with just enough
prvileges to copy the file from one specified directory to another on
the network.
Regards,
Owen
-----Original Message-----
From: odempsey@b... [mailto:odempsey@b...]
Sent: Monday, January 14, 2002 3:00 PM
To: ASP Web HowTo
Subject: [asp_web_howto] RE: FTP from one domain to another
Hi Oleg
I'm not sure you understand what I mean. Can I copy a file from
<http://www.oneserver.com> http://www.onedomain.com to
www.anotherdomain.com
using an ASP page on http://www.onedomain.com if they are not on the
same server?
Kind Regards
Oliver Dempsey
----- Original Message -----
From: Oleg Kapeljushnik <mailto:c-oleg.kapeljushnik@w...>
To: ASP Web HowTo <mailto:asp_web_howto@p...>
Sent: Monday, January 14, 2002 4:42 PM
Subject: [asp_web_howto] RE: FTP from one domain to another
You can FTP file from any computer to any computer within the same
network or not.
Just make sure that your FTP site configured correctly (have write
permission if you need one)
Oleg
-----Original Message-----
From: odempsey@b... [mailto:odempsey@b...]
Sent: January 14, 2002 11:30 AM
To: ASP Web HowTo
Subject: [asp_web_howto] FTP from one domain to another
Hi there
is it possible to ftp a file from one domain to another?
The reason why I ask is that I want to be able to write changes to the
database on one domain to a text file and transfer this text file to the
other domain so that it can be picked up and added to the database on
that server later on.
Kind Regards
Oliver Dempsey
$subst('Email.Unsub').
$subst('Email.Unsub').
$subst('Email.Unsub').
Message #6 by "Tim Morford" <tmorford@n...> on Mon, 14 Jan 2002 18:55:33 -0500
|
|
Check out using Internet Transfer Control in your page but one thing to remember this might not work
unless you roll it in to a COM object, because ASP pages can not access the License manager in the
registry.
http://msdn.microsoft.com/library/default.asp?url=/library/en-us/vbcon98/html/vbconusinginternettran
sfercontrol.asp
Tim Morford
http://www.aspalliance.com/tmorford
-----Original Message-----
From: odempsey@b... [mailto:odempsey@b...]
Sent: Monday, January 14, 2002 5:00 PM
To: ASP Web HowTo
Subject: [asp_web_howto] RE: FTP from one domain to another
Hi Oleg
I'm not sure you understand what I mean. Can I copy a file from http://www.onedomain.com to
www.anotherdomain.com
using an ASP page on http://www.onedomain.com if they are not on the same server?
Kind Regards
Oliver Dempsey
----- Original Message -----
From: Oleg Kapeljushnik
To: ASP Web HowTo
Sent: Monday, January 14, 2002 4:42 PM
Subject: [asp_web_howto] RE: FTP from one domain to another
You can FTP file from any computer to any computer within the same network or not.
Just make sure that your FTP site configured correctly (have write permission if you need one)
Oleg
-----Original Message-----
From: odempsey@b... [mailto:odempsey@b...]
Sent: January 14, 2002 11:30 AM
To: ASP Web HowTo
Subject: [asp_web_howto] FTP from one domain to another
Hi there
is it possible to ftp a file from one domain to another?
The reason why I ask is that I want to be able to write changes to the database on one domain to a
text file and transfer this text file to the other domain so that it can be picked up and added to
the database on that server later on.
Kind Regards
Oliver Dempsey
Message #7 by <odempsey@b...> on Tue, 15 Jan 2002 15:50:16 -0000
|
|
This is a multi-part message in MIME format.
------=_NextPart_000_014B_01C19DDC.53DAD1E0
Content-Type: text/plain;
charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable
MessageThanks Lads
I came across this problem before when I asked our hosting company would
they install a dll to allow us access mail on another server. The
hosting company that we use won't let us install third party dlls. Do
you have your own hosting companies or can you tell me who are the
hosting companies that allow installation of third party components?
Many thanks
Oliver Dempsey
----- Original Message -----
From: Owen Mortensen
To: ASP Web HowTo
Sent: Monday, January 14, 2002 11:37 PM
Subject: [asp_web_howto] RE: FTP from one domain to another
Hard to do (for obvious security reasons). We ended up creating a COM
object, instantiated through MTS as a network user with just enough
prvileges to copy the file from one specified directory to another on
the network.
Regards,
Owen
-----Original Message-----
From: odempsey@b... [mailto:odempsey@b...]
Sent: Monday, January 14, 2002 3:00 PM
To: ASP Web HowTo
Subject: [asp_web_howto] RE: FTP from one domain to another
Hi Oleg
I'm not sure you understand what I mean. Can I copy a file from
http://www.onedomain.com to www.anotherdomain.com
using an ASP page on http://www.onedomain.com if they are not on the
same server?
Kind Regards
Oliver Dempsey
----- Original Message -----
From: Oleg Kapeljushnik
To: ASP Web HowTo
Sent: Monday, January 14, 2002 4:42 PM
Subject: [asp_web_howto] RE: FTP from one domain to another
You can FTP file from any computer to any computer within the same
network or not.
Just make sure that your FTP site configured correctly (have write
permission if you need one)
Oleg
-----Original Message-----
From: odempsey@b... [mailto:odempsey@b...]
Sent: January 14, 2002 11:30 AM
To: ASP Web HowTo
Subject: [asp_web_howto] FTP from one domain to another
Hi there
is it possible to ftp a file from one domain to another?
The reason why I ask is that I want to be able to write
changes to the database on one domain to a text file and transfer this
text file to the other domain so that it can be picked up and added to
the database on that server later on.
Kind Regards
Oliver Dempsey
$subst('Email.Unsub').
$subst('Email.Unsub').
$subst('Email.Unsub').
$subst('Email.Unsub').
Message #8 by Ben Meghreblian <benmeg@b...> on Tue, 15 Jan 2002 23:48:27 +0000
|
|
Hi there,
I've just knocked up some code that may suffice:
http://benmeg.com/code/asp/ftp.asp.html
Cheers,
Ben
At 16:30 14/01/2002 +0000, you wrote:
>Hi there
>is it possible to ftp a file from one domain to another?
>
> The reason why I ask is that I want to be able to write changes to the
> database on one domain to a text file and transfer this text file to the
> other domain so that it can be picked up and added to the database on
> that server later on.
>
>Kind Regards
>Oliver Dempsey
>$subst('Email.Unsub').
http://benmeg.com
Home 020 8892 8744
PGP: 0x2DE55E08
Fingerprint: 5950 6447 2FB2 3314 F57D 82B2 7EF8 B51A 2DE5 5E08
This email and any files transmitted with it are confidential and intended
solely for the use of the individual or entity to whom they are addressed.
If you have received this email in error please notify the system manager.
Message #9 by <odempsey@b...> on Wed, 16 Jan 2002 11:59:16 -0000
|
|
Hi Ben
Absolutely Ingenius, well done!
It's a great credit to you to have written this piece of script, you
obviously have a very indepth knowledge of ftp as well as ASP.
There are many applications for this code. One advantage with it is the
speed at which it transfers from one server to another. On the one I tested
it was 23000.00 Kbytes/sec.
I have a couple of questions:-
What is this physical path for? I thought it was the directory on the
domain we are putting to and I set it to "".
ftp_physical_path = "" '"c:\inetpub\wwwroot\server.com"
The file still puts OK but it also reports the following:-
230 User da194-6 logged in.
ftp> ftp>
(remote-directory) cd
prompt
550 CWD failed. 'prompt' : no such file or directory.
ftp> put file.txt
200 Port command successful.
150 Opening data connection for file.txt.
226-Disk Quota - Current : 221 bytes - Max : 143 Mbytes - Available : 143
Mbytes
226 File received ok.
23 bytes sent in 0.00 seconds (23000.00 Kbytes/sec)
ftp> bye
221 Bye Bye ...
The second question which I have is how to put binary files.
For example I wanted to put the file below:-
ftp_files_to_put = "barro_logo.gif"
I uncommented objTextFile.WriteLine "binary"as you suggested (see below)
' If the file(s) is/are binary (i.e. .jpg, .mdb, etc..), uncomment the
following line'
objTextFile.WriteLine "binary"
' If there are multiple files to put, we need to use the command 'mput',
instead of 'put'
If Instr(1, ftp_files_to_put, "*",1) Then
objTextFile.WriteLine "mput " & ftp_files_to_put
Else
objTextFile.WriteLine "put " & ftp_files_to_put
End If
However I am getting the following error:-
550 CWD failed. 'prompt' : no such file or directory.
ftp> binary
200 Type set to I.
ftp> ftp> put barro_logo.gif
barro_logo.gif: File not found
bye
221 Bye Bye ...
Many Thanks
Oliver Dempsey
----- Original Message -----
From: Ben Meghreblian <benmeg@b...>
To: ASP Web HowTo <asp_web_howto@p...>
Sent: Tuesday, January 15, 2002 11:48 PM
Subject: [asp_web_howto] Re: FTP from one domain to another
> Hi there,
>
> I've just knocked up some code that may suffice:
>
> http://benmeg.com/code/asp/ftp.asp.html
>
> Cheers,
>
> Ben
>
> At 16:30 14/01/2002 +0000, you wrote:
> >Hi there
> >is it possible to ftp a file from one domain to another?
> >
> > The reason why I ask is that I want to be able to write changes to the
> > database on one domain to a text file and transfer this text file to the
> > other domain so that it can be picked up and added to the database on
> > that server later on.
> >
> >Kind Regards
> >Oliver Dempsey
> >$subst('Email.Unsub').
>
>
> http://benmeg.com
>
> Home 020 8892 8744
>
> PGP: 0x2DE55E08
> Fingerprint: 5950 6447 2FB2 3314 F57D 82B2 7EF8 B51A 2DE5 5E08
>
> This email and any files transmitted with it are confidential and intended
> solely for the use of the individual or entity to whom they are addressed.
> If you have received this email in error please notify the system manager.
>
>
$subst('Email.Unsub').
>
>
Message #10 by Ben Meghreblian <benmeg@b...> on Wed, 16 Jan 2002 15:00:40 +0000
|
|
Hi Oliver,
When I wrote the script I was working with a FTP server that made no effort
to hide the physical path of the directory I was uploading to. So, doing a
'cd c:\inetpub\wwwroot\website" would work, but you've raised a good point,
so I've changed the script slightly to reflect this. Now, as you were
doing, you just leave ftp_remote_directory = "" if you are uploading to the
root directory, or have ftp_remote_directory = "subdirectory" to upload to
a subdirectory. I'm not sure why you are encountering an error while trying
to upload a binary file - the only thing that springs to mind is to make
sure the file in question is in the same directory as this ASP script. As
for your comments about the increased speed of the transfer, you're
correct, but please bear in mind that for very small files the transfer
statistics will not be accurate - try with a file of a few 100k - 1MB.
So, the revised script is still here:
http://benmeg.com/code/asp/ftp.asp.html
Cheers,
Ben
At 11:59 16/01/2002 +0000, you wrote:
>Hi Ben
>Absolutely Ingenius, well done!
>
>It's a great credit to you to have written this piece of script, you
>obviously have a very indepth knowledge of ftp as well as ASP.
>
>There are many applications for this code. One advantage with it is the
>speed at which it transfers from one server to another. On the one I tested
>it was 23000.00 Kbytes/sec.
>
>I have a couple of questions:-
>What is this physical path for? I thought it was the directory on the
>domain we are putting to and I set it to "".
>ftp_physical_path = "" '"c:\inetpub\wwwroot\server.com"
>
>The file still puts OK but it also reports the following:-
>230 User da194-6 logged in.
>ftp> ftp>
>(remote-directory) cd
>prompt
>550 CWD failed. 'prompt' : no such file or directory.
>ftp> put file.txt
>200 Port command successful.
>150 Opening data connection for file.txt.
>226-Disk Quota - Current : 221 bytes - Max : 143 Mbytes - Available : 143
>Mbytes
>226 File received ok.
>23 bytes sent in 0.00 seconds (23000.00 Kbytes/sec)
>ftp> bye
>221 Bye Bye ...
>
>
>
>The second question which I have is how to put binary files.
>For example I wanted to put the file below:-
>ftp_files_to_put = "barro_logo.gif"
>
>I uncommented objTextFile.WriteLine "binary"as you suggested (see below)
>
>
>' If the file(s) is/are binary (i.e. .jpg, .mdb, etc..), uncomment the
>following line'
>objTextFile.WriteLine "binary"
>' If there are multiple files to put, we need to use the command 'mput',
>instead of 'put'
>If Instr(1, ftp_files_to_put, "*",1) Then
> objTextFile.WriteLine "mput " & ftp_files_to_put
>Else
> objTextFile.WriteLine "put " & ftp_files_to_put
>End If
>
>
>However I am getting the following error:-
>550 CWD failed. 'prompt' : no such file or directory.
>ftp> binary
>200 Type set to I.
>ftp> ftp> put barro_logo.gif
>barro_logo.gif: File not found
>bye
>221 Bye Bye ...
>
>
>Many Thanks
>Oliver Dempsey
>
>
>----- Original Message -----
>From: Ben Meghreblian <benmeg@b...>
>To: ASP Web HowTo <asp_web_howto@p...>
>Sent: Tuesday, January 15, 2002 11:48 PM
>Subject: [asp_web_howto] Re: FTP from one domain to another
>
>
> > Hi there,
> >
> > I've just knocked up some code that may suffice:
> >
> > http://benmeg.com/code/asp/ftp.asp.html
> >
> > Cheers,
> >
> > Ben
> >
> > At 16:30 14/01/2002 +0000, you wrote:
> > >Hi there
> > >is it possible to ftp a file from one domain to another?
> > >
> > > The reason why I ask is that I want to be able to write changes to the
> > > database on one domain to a text file and transfer this text file to the
> > > other domain so that it can be picked up and added to the database on
> > > that server later on.
> > >
> > >Kind Regards
> > >Oliver Dempsey
> > >$subst('Email.Unsub').
> >
> >
> > http://benmeg.com
> >
> > Home 020 8892 8744
> >
> > PGP: 0x2DE55E08
> > Fingerprint: 5950 6447 2FB2 3314 F57D 82B2 7EF8 B51A 2DE5 5E08
> >
> > This email and any files transmitted with it are confidential and intended
> > solely for the use of the individual or entity to whom they are addressed.
> > If you have received this email in error please notify the system manager.
> >
> >
>$subst('Email.Unsub').
> >
> >
>
>
http://benmeg.com
Home 020 8892 8744
PGP: 0x2DE55E08
Fingerprint: 5950 6447 2FB2 3314 F57D 82B2 7EF8 B51A 2DE5 5E08
This email and any files transmitted with it are confidential and intended
solely for the use of the individual or entity to whom they are addressed.
If you have received this email in error please notify the system manager.
Message #11 by "O'Hara, Elliott M" <EMOHARA@k...> on Wed, 16 Jan 2002 10:01:08 -0500
|
|
Ben...
You are the man...
just so everyone knows....
Ben is the man..
I've been working on something like that forever, but without much luck,
thanks a ton.
-----Original Message-----
From: Ben Meghreblian [mailto:benmeg@b...]
Sent: Wednesday, January 16, 2002 10:01 AM
To: ASP Web HowTo
Subject: [asp_web_howto] Re: FTP from one domain to another
Hi Oliver,
When I wrote the script I was working with a FTP server that made no effort
to hide the physical path of the directory I was uploading to. So, doing a
'cd c:\inetpub\wwwroot\website" would work, but you've raised a good point,
so I've changed the script slightly to reflect this. Now, as you were
doing, you just leave ftp_remote_directory = "" if you are uploading to the
root directory, or have ftp_remote_directory = "subdirectory" to upload to
a subdirectory. I'm not sure why you are encountering an error while trying
to upload a binary file - the only thing that springs to mind is to make
sure the file in question is in the same directory as this ASP script. As
for your comments about the increased speed of the transfer, you're
correct, but please bear in mind that for very small files the transfer
statistics will not be accurate - try with a file of a few 100k - 1MB.
So, the revised script is still here:
http://benmeg.com/code/asp/ftp.asp.html
Cheers,
Ben
At 11:59 16/01/2002 +0000, you wrote:
>Hi Ben
>Absolutely Ingenius, well done!
>
>It's a great credit to you to have written this piece of script, you
>obviously have a very indepth knowledge of ftp as well as ASP.
>
>There are many applications for this code. One advantage with it is the
>speed at which it transfers from one server to another. On the one I
tested
>it was 23000.00 Kbytes/sec.
>
>I have a couple of questions:-
>What is this physical path for? I thought it was the directory on the
>domain we are putting to and I set it to "".
>ftp_physical_path = "" '"c:\inetpub\wwwroot\server.com"
>
>The file still puts OK but it also reports the following:-
>230 User da194-6 logged in.
>ftp> ftp>
>(remote-directory) cd
>prompt
>550 CWD failed. 'prompt' : no such file or directory.
>ftp> put file.txt
>200 Port command successful.
>150 Opening data connection for file.txt.
>226-Disk Quota - Current : 221 bytes - Max : 143 Mbytes - Available : 143
>Mbytes
>226 File received ok.
>23 bytes sent in 0.00 seconds (23000.00 Kbytes/sec)
>ftp> bye
>221 Bye Bye ...
>
>
>
>The second question which I have is how to put binary files.
>For example I wanted to put the file below:-
>ftp_files_to_put = "barro_logo.gif"
>
>I uncommented objTextFile.WriteLine "binary"as you suggested (see below)
>
>
>' If the file(s) is/are binary (i.e. .jpg, .mdb, etc..), uncomment the
>following line'
>objTextFile.WriteLine "binary"
>' If there are multiple files to put, we need to use the command 'mput',
>instead of 'put'
>If Instr(1, ftp_files_to_put, "*",1) Then
> objTextFile.WriteLine "mput " & ftp_files_to_put
>Else
> objTextFile.WriteLine "put " & ftp_files_to_put
>End If
>
>
>However I am getting the following error:-
>550 CWD failed. 'prompt' : no such file or directory.
>ftp> binary
>200 Type set to I.
>ftp> ftp> put barro_logo.gif
>barro_logo.gif: File not found
>bye
>221 Bye Bye ...
>
>
>Many Thanks
>Oliver Dempsey
>
>
>----- Original Message -----
>From: Ben Meghreblian <benmeg@b...>
>To: ASP Web HowTo <asp_web_howto@p...>
>Sent: Tuesday, January 15, 2002 11:48 PM
>Subject: [asp_web_howto] Re: FTP from one domain to another
>
>
> > Hi there,
> >
> > I've just knocked up some code that may suffice:
> >
> > http://benmeg.com/code/asp/ftp.asp.html
> >
> > Cheers,
> >
> > Ben
> >
> > At 16:30 14/01/2002 +0000, you wrote:
> > >Hi there
> > >is it possible to ftp a file from one domain to another?
> > >
> > > The reason why I ask is that I want to be able to write changes to
the
> > > database on one domain to a text file and transfer this text file to
the
> > > other domain so that it can be picked up and added to the database on
> > > that server later on.
> > >
> > >Kind Regards
> > >Oliver Dempsey
> > >$subst('Email.Unsub').
> >
> >
> > http://benmeg.com
> >
> > Home 020 8892 8744
> >
> > PGP: 0x2DE55E08
> > Fingerprint: 5950 6447 2FB2 3314 F57D 82B2 7EF8 B51A 2DE5 5E08
> >
> > This email and any files transmitted with it are confidential and
intended
> > solely for the use of the individual or entity to whom they are
addressed.
> > If you have received this email in error please notify the system
manager.
> >
> >
>$subst('Email.Unsub').
> >
> >
>
>
$subst('Email.Unsub').
http://benmeg.com
Home 020 8892 8744
PGP: 0x2DE55E08
Fingerprint: 5950 6447 2FB2 3314 F57D 82B2 7EF8 B51A 2DE5 5E08
This email and any files transmitted with it are confidential and intended
solely for the use of the individual or entity to whom they are addressed.
If you have received this email in error please notify the system manager.
$subst('Email.Unsub').
Message #12 by <odempsey@b...> on Wed, 16 Jan 2002 15:49:10 -0000
|
|
Hi Ben
Absolutely brilliant!
The changes for the subdirectory are perfect.
I made a mistake about the binary file. I thought it was on the server but
it wasn't.
It copied 1.45MBs in 0.24 seconds. Fantastic, well done!
Many Thanks
Oliver Dempsey
----- Original Message -----
From: Ben Meghreblian <benmeg@b...>
To: ASP Web HowTo <asp_web_howto@p...>
Sent: Wednesday, January 16, 2002 3:00 PM
Subject: [asp_web_howto] Re: FTP from one domain to another
> Hi Oliver,
>
> When I wrote the script I was working with a FTP server that made no
effort
> to hide the physical path of the directory I was uploading to. So, doing a
> 'cd c:\inetpub\wwwroot\website" would work, but you've raised a good
point,
> so I've changed the script slightly to reflect this. Now, as you were
> doing, you just leave ftp_remote_directory = "" if you are uploading to
the
> root directory, or have ftp_remote_directory = "subdirectory" to upload to
> a subdirectory. I'm not sure why you are encountering an error while
trying
> to upload a binary file - the only thing that springs to mind is to make
> sure the file in question is in the same directory as this ASP script. As
> for your comments about the increased speed of the transfer, you're
> correct, but please bear in mind that for very small files the transfer
> statistics will not be accurate - try with a file of a few 100k - 1MB.
>
> So, the revised script is still here:
>
> http://benmeg.com/code/asp/ftp.asp.html
>
> Cheers,
>
> Ben
>
> At 11:59 16/01/2002 +0000, you wrote:
> >Hi Ben
> >Absolutely Ingenius, well done!
> >
> >It's a great credit to you to have written this piece of script, you
> >obviously have a very indepth knowledge of ftp as well as ASP.
> >
> >There are many applications for this code. One advantage with it is the
> >speed at which it transfers from one server to another. On the one I
tested
> >it was 23000.00 Kbytes/sec.
> >
> >I have a couple of questions:-
> >What is this physical path for? I thought it was the directory on the
> >domain we are putting to and I set it to "".
> >ftp_physical_path = "" '"c:\inetpub\wwwroot\server.com"
> >
> >The file still puts OK but it also reports the following:-
> >230 User da194-6 logged in.
> >ftp> ftp>
> >(remote-directory) cd
> >prompt
> >550 CWD failed. 'prompt' : no such file or directory.
> >ftp> put file.txt
> >200 Port command successful.
> >150 Opening data connection for file.txt.
> >226-Disk Quota - Current : 221 bytes - Max : 143 Mbytes - Available : 143
> >Mbytes
> >226 File received ok.
> >23 bytes sent in 0.00 seconds (23000.00 Kbytes/sec)
> >ftp> bye
> >221 Bye Bye ...
> >
> >
> >
> >The second question which I have is how to put binary files.
> >For example I wanted to put the file below:-
> >ftp_files_to_put = "barro_logo.gif"
> >
> >I uncommented objTextFile.WriteLine "binary"as you suggested (see below)
> >
> >
> >' If the file(s) is/are binary (i.e. .jpg, .mdb, etc..), uncomment the
> >following line'
> >objTextFile.WriteLine "binary"
> >' If there are multiple files to put, we need to use the command 'mput',
> >instead of 'put'
> >If Instr(1, ftp_files_to_put, "*",1) Then
> > objTextFile.WriteLine "mput " & ftp_files_to_put
> >Else
> > objTextFile.WriteLine "put " & ftp_files_to_put
> >End If
> >
> >
> >However I am getting the following error:-
> >550 CWD failed. 'prompt' : no such file or directory.
> >ftp> binary
> >200 Type set to I.
> >ftp> ftp> put barro_logo.gif
> >barro_logo.gif: File not found
> >bye
> >221 Bye Bye ...
> >
> >
> >Many Thanks
> >Oliver Dempsey
> >
> >
> >----- Original Message -----
> >From: Ben Meghreblian <benmeg@b...>
> >To: ASP Web HowTo <asp_web_howto@p...>
> >Sent: Tuesday, January 15, 2002 11:48 PM
> >Subject: [asp_web_howto] Re: FTP from one domain to another
> >
> >
> > > Hi there,
> > >
> > > I've just knocked up some code that may suffice:
> > >
> > > http://benmeg.com/code/asp/ftp.asp.html
> > >
> > > Cheers,
> > >
> > > Ben
> > >
> > > At 16:30 14/01/2002 +0000, you wrote:
> > > >Hi there
> > > >is it possible to ftp a file from one domain to another?
> > > >
> > > > The reason why I ask is that I want to be able to write changes to
the
> > > > database on one domain to a text file and transfer this text file to
the
> > > > other domain so that it can be picked up and added to the database
on
> > > > that server later on.
> > > >
> > > >Kind Regards
> > > >Oliver Dempsey
> > > >$subst('Email.Unsub').
> > >
> > >
> > > http://benmeg.com
> > >
> > > Home 020 8892 8744
> > >
> > > PGP: 0x2DE55E08
> > > Fingerprint: 5950 6447 2FB2 3314 F57D 82B2 7EF8 B51A 2DE5 5E08
> > >
> > > This email and any files transmitted with it are confidential and
intended
> > > solely for the use of the individual or entity to whom they are
addressed.
> > > If you have received this email in error please notify the system
manager.
> > >
> > >
> >$subst('Email.Unsub').
> > >
> > >
> >
> >
$subst('Email.Unsub').
>
>
> http://benmeg.com
>
> Home 020 8892 8744
>
> PGP: 0x2DE55E08
> Fingerprint: 5950 6447 2FB2 3314 F57D 82B2 7EF8 B51A 2DE5 5E08
>
> This email and any files transmitted with it are confidential and intended
> solely for the use of the individual or entity to whom they are addressed.
> If you have received this email in error please notify the system manager.
>
>
$subst('Email.Unsub').
>
>
|
|
 |