Re: ftp to webstar
This WebDNA talk-list message is from 2001
It keeps the original formatting.
numero = 38524
interpreted = N
texte = Ken, I thought of the TCP connect command however, I'm behinda firewall. This is why I am trying to populate a forms input. If I usea forms system then I can *see* both servers (I think) as long as I am workingfrom inside my LAN. I don't think TCPconnect will be able to *see*my Dev machine unless I open up some holes.??? If I can grasp theinfo from my database into a text field in a form. I can then send thatform to my dev machine to replace that database. Or so my limitedknoweledge of forms tells me.Kenneth Grome wrote:> What's your goal here? Are you trying to replace an entire db on> server2 with the the data from a similar db on server1?>> If that's all you're trying to do, just create a template on server1> that does what I suggested below, then put another template on> server2 that does these tasks in order:>> 1- close the db you're dealing with on server2;>> 2- rename this db without the db extension -- so it cannot> accidentally be opened again by webcat, and so you still have it> available in case any problems arise;>> 3- code a writefile context that writes a new db file with the db> name you closed in step #1, then nest a middle context inside it,> then a tcpconnect inside that, then a tcpsend inside that;>> 4- make the tcpconnect get you admin template on server1.>> This technique will get the current data from the db file on server1> by including it in the template on server1, then the template on> server2 will bring that data into server2 and write it to a new db> file which will replace the one that was just clsed and renamed on> server2.>> You'll have to be careful about your webdna formatting and the middle> context, because you'll be writing a db to server2, so your code will> have to be free of any extraneous line returns in BOTH admin> templates. If you do it right, this technique will let you replace> the db on server2 with the current db on server1 in a single step.>> >hmm, I guess I could add this to John's DBedit code.... I had another> >idea on this Ken. Could I have this admin page automatically populate> >the value of a text input on a form? Then (from inside our LAN) could> >this form request a page (tpl) from my Development server and [REPLACE]> >(update) the development machine's database?> >> >> >Kenneth Grome wrote:> >> >-- Donovan D. Brooke> >Systems Administrator/> >Assc. Art Director> >Epsen Hillmer Graphics> >> >I know I'm making progress when I look at the questions I have> >asked in the past and think to myself... how stupid was that-------------------------------------------------------------This message is sent to you because you are subscribed to the mailing list
.To unsubscribe, E-mail to: To switch to the DIGEST mode, E-mail to Web Archive of this list is at: http://search.smithmicro.com/
Associated Messages, from the most recent to the oldest:
Ken, I thought of the TCP connect command however, I'm behinda firewall. This is why I am trying to populate a forms input. If I usea forms system then I can *see* both servers (I think) as long as I am workingfrom inside my LAN. I don't think TCPconnect will be able to *see*my Dev machine unless I open up some holes.??? If I can grasp theinfo from my database into a text field in a form. I can then send thatform to my dev machine to replace that database. Or so my limitedknoweledge of forms tells me.Kenneth Grome wrote:> What's your goal here? Are you trying to replace an entire db on> server2 with the the data from a similar db on server1?>> If that's all you're trying to do, just create a template on server1> that does what I suggested below, then put another template on> server2 that does these tasks in order:>> 1- close the db you're dealing with on server2;>> 2- rename this db without the db extension -- so it cannot> accidentally be opened again by webcat, and so you still have it> available in case any problems arise;>> 3- code a writefile context that writes a new db file with the db> name you closed in step #1, then nest a middle context inside it,> then a tcpconnect inside that, then a tcpsend inside that;>> 4- make the tcpconnect get you admin template on server1.>> This technique will get the current data from the db file on server1> by including it in the template on server1, then the template on> server2 will bring that data into server2 and write it to a new db> file which will replace the one that was just clsed and renamed on> server2.>> You'll have to be careful about your webdna formatting and the middle> context, because you'll be writing a db to server2, so your code will> have to be free of any extraneous line returns in BOTH admin> templates. If you do it right, this technique will let you replace> the db on server2 with the current db on server1 in a single step.>> >hmm, I guess I could add this to John's DBedit code.... I had another> >idea on this Ken. Could I have this admin page automatically populate> >the value of a text input on a form? Then (from inside our LAN) could> >this form request a page (tpl) from my Development server and [replace]> >(update) the development machine's database?> >> >> >Kenneth Grome wrote:> >> >-- Donovan D. Brooke> >Systems Administrator/> >Assc. Art Director> >Epsen Hillmer Graphics> >> >I know I'm making progress when I look at the questions I have> >asked in the past and think to myself... how stupid was that-------------------------------------------------------------This message is sent to you because you are subscribed to the mailing list .To unsubscribe, E-mail to: To switch to the DIGEST mode, E-mail to Web Archive of this list is at: http://search.smithmicro.com/
Donovan Brooke
DOWNLOAD WEBDNA NOW!
Top Articles:
Talk List
The WebDNA community talk-list is the best place to get some help: several hundred extremely proficient programmers with an excellent knowledge of WebDNA and an excellent spirit will deliver all the tips and tricks you can imagine...
Related Readings:
Reversed words (1997)
RE: Automatic Forwarding using WebCat (1997)
WebCat2b13MacPlugIn - [include] (1997)
Mauthonly followed by mauthcapture (2002)
Version 2.1.3 changes ... (1998)
[shipCost] math formula? (1997)
Not really WebCat (1997)
Date search - yes or no (1997)
How can I Add several Items into the cart at once? (1997)
Not really WebCat (1997)
Date Comparison (1998)
Pref settings? (1998)
Showif, Hideif reverse logic ? (1997)
[WebDNA] SWITCH/CASE or SHOWIF (2008)
Upgrade Pricing? (2003)
Counting records (2000)
[WebDNA] How to generate md5 hash on linux (2009)
Triggers (2003)
email database file (2005)
WCS Newbie question (1997)